//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_spi(SotoInternal) import SotoCore

extension CloudFormation {
    // MARK: Enums

    public enum AccountFilterType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case difference = "DIFFERENCE"
        case intersection = "INTERSECTION"
        case none = "NONE"
        case union = "UNION"
        public var description: String { return self.rawValue }
    }

    public enum AccountGateStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failed = "FAILED"
        case skipped = "SKIPPED"
        case succeeded = "SUCCEEDED"
        public var description: String { return self.rawValue }
    }

    public enum AttributeChangeType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case add = "Add"
        case modify = "Modify"
        case remove = "Remove"
        public var description: String { return self.rawValue }
    }

    public enum CallAs: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case _self = "SELF"
        case delegatedAdmin = "DELEGATED_ADMIN"
        public var description: String { return self.rawValue }
    }

    public enum Capability: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case capabilityAutoExpand = "CAPABILITY_AUTO_EXPAND"
        case capabilityIam = "CAPABILITY_IAM"
        case capabilityNamedIam = "CAPABILITY_NAMED_IAM"
        public var description: String { return self.rawValue }
    }

    public enum Category: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case activated = "ACTIVATED"
        case awsTypes = "AWS_TYPES"
        case registered = "REGISTERED"
        case thirdParty = "THIRD_PARTY"
        public var description: String { return self.rawValue }
    }

    public enum ChangeAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `import` = "Import"
        case add = "Add"
        case dynamic = "Dynamic"
        case modify = "Modify"
        case remove = "Remove"
        public var description: String { return self.rawValue }
    }

    public enum ChangeSetHooksStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case planned = "PLANNED"
        case planning = "PLANNING"
        case unavailable = "UNAVAILABLE"
        public var description: String { return self.rawValue }
    }

    public enum ChangeSetStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case createComplete = "CREATE_COMPLETE"
        case createInProgress = "CREATE_IN_PROGRESS"
        case createPending = "CREATE_PENDING"
        case deleteComplete = "DELETE_COMPLETE"
        case deleteFailed = "DELETE_FAILED"
        case deleteInProgress = "DELETE_IN_PROGRESS"
        case deletePending = "DELETE_PENDING"
        case failed = "FAILED"
        public var description: String { return self.rawValue }
    }

    public enum ChangeSetType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `import` = "IMPORT"
        case create = "CREATE"
        case update = "UPDATE"
        public var description: String { return self.rawValue }
    }

    public enum ChangeSource: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case automatic = "Automatic"
        case directModification = "DirectModification"
        case parameterReference = "ParameterReference"
        case resourceAttribute = "ResourceAttribute"
        case resourceReference = "ResourceReference"
        public var description: String { return self.rawValue }
    }

    public enum ChangeType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case resource = "Resource"
        public var description: String { return self.rawValue }
    }

    public enum ConcurrencyMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case softFailureTolerance = "SOFT_FAILURE_TOLERANCE"
        case strictFailureTolerance = "STRICT_FAILURE_TOLERANCE"
        public var description: String { return self.rawValue }
    }

    public enum DeletionMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case forceDeleteStack = "FORCE_DELETE_STACK"
        case standard = "STANDARD"
        public var description: String { return self.rawValue }
    }

    public enum DeprecatedStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case deprecated = "DEPRECATED"
        case live = "LIVE"
        public var description: String { return self.rawValue }
    }

    public enum DetailedStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case configurationComplete = "CONFIGURATION_COMPLETE"
        case validationFailed = "VALIDATION_FAILED"
        public var description: String { return self.rawValue }
    }

    public enum DifferenceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case add = "ADD"
        case notEqual = "NOT_EQUAL"
        case remove = "REMOVE"
        public var description: String { return self.rawValue }
    }

    public enum EvaluationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `static` = "Static"
        case dynamic = "Dynamic"
        public var description: String { return self.rawValue }
    }

    public enum ExecutionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case available = "AVAILABLE"
        case executeComplete = "EXECUTE_COMPLETE"
        case executeFailed = "EXECUTE_FAILED"
        case executeInProgress = "EXECUTE_IN_PROGRESS"
        case obsolete = "OBSOLETE"
        case unavailable = "UNAVAILABLE"
        public var description: String { return self.rawValue }
    }

    public enum GeneratedTemplateDeletionPolicy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delete = "DELETE"
        case retain = "RETAIN"
        public var description: String { return self.rawValue }
    }

    public enum GeneratedTemplateResourceStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case complete = "COMPLETE"
        case failed = "FAILED"
        case inProgress = "IN_PROGRESS"
        case pending = "PENDING"
        public var description: String { return self.rawValue }
    }

    public enum GeneratedTemplateStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case complete = "COMPLETE"
        case createInProgress = "CREATE_IN_PROGRESS"
        case createPending = "CREATE_PENDING"
        case deleteInProgress = "DELETE_IN_PROGRESS"
        case deletePending = "DELETE_PENDING"
        case failed = "FAILED"
        case updateInProgress = "UPDATE_IN_PROGRESS"
        case updatePending = "UPDATE_PENDING"
        public var description: String { return self.rawValue }
    }

    public enum GeneratedTemplateUpdateReplacePolicy: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delete = "DELETE"
        case retain = "RETAIN"
        public var description: String { return self.rawValue }
    }

    public enum HandlerErrorCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case accessDenied = "AccessDenied"
        case alreadyExists = "AlreadyExists"
        case generalServiceException = "GeneralServiceException"
        case handlerInternalFailure = "HandlerInternalFailure"
        case internalFailure = "InternalFailure"
        case invalidCredentials = "InvalidCredentials"
        case invalidRequest = "InvalidRequest"
        case invalidTypeConfiguration = "InvalidTypeConfiguration"
        case networkFailure = "NetworkFailure"
        case nonCompliant = "NonCompliant"
        case notFound = "NotFound"
        case notUpdatable = "NotUpdatable"
        case resourceConflict = "ResourceConflict"
        case serviceInternalError = "ServiceInternalError"
        case serviceLimitExceeded = "ServiceLimitExceeded"
        case serviceTimeout = "NotStabilized"
        case throttling = "Throttling"
        case unknown = "Unknown"
        case unsupportedTarget = "UnsupportedTarget"
        public var description: String { return self.rawValue }
    }

    public enum HookFailureMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case fail = "FAIL"
        case warn = "WARN"
        public var description: String { return self.rawValue }
    }

    public enum HookInvocationPoint: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case preProvision = "PRE_PROVISION"
        public var description: String { return self.rawValue }
    }

    public enum HookStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hookCompleteFailed = "HOOK_COMPLETE_FAILED"
        case hookCompleteSucceeded = "HOOK_COMPLETE_SUCCEEDED"
        case hookFailed = "HOOK_FAILED"
        case hookInProgress = "HOOK_IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum HookTargetType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case resource = "RESOURCE"
        public var description: String { return self.rawValue }
    }

    public enum IdentityProvider: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case awsMarketplace = "AWS_Marketplace"
        case bitbucket = "Bitbucket"
        case gitHub = "GitHub"
        public var description: String { return self.rawValue }
    }

    public enum ListHookResultsTargetType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case changeSet = "CHANGE_SET"
        case cloudControl = "CLOUD_CONTROL"
        case resource = "RESOURCE"
        case stack = "STACK"
        public var description: String { return self.rawValue }
    }

    public enum OnFailure: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delete = "DELETE"
        case doNothing = "DO_NOTHING"
        case rollback = "ROLLBACK"
        public var description: String { return self.rawValue }
    }

    public enum OnStackFailure: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delete = "DELETE"
        case doNothing = "DO_NOTHING"
        case rollback = "ROLLBACK"
        public var description: String { return self.rawValue }
    }

    public enum OperationResultFilterName: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case operationResultStatus = "OPERATION_RESULT_STATUS"
        public var description: String { return self.rawValue }
    }

    public enum OperationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failed = "FAILED"
        case inProgress = "IN_PROGRESS"
        case pending = "PENDING"
        case success = "SUCCESS"
        public var description: String { return self.rawValue }
    }

    public enum OrganizationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case disabledPermanently = "DISABLED_PERMANENTLY"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    public enum PermissionModels: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case selfManaged = "SELF_MANAGED"
        case serviceManaged = "SERVICE_MANAGED"
        public var description: String { return self.rawValue }
    }

    public enum PolicyAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case delete = "Delete"
        case replaceAndDelete = "ReplaceAndDelete"
        case replaceAndRetain = "ReplaceAndRetain"
        case replaceAndSnapshot = "ReplaceAndSnapshot"
        case retain = "Retain"
        case snapshot = "Snapshot"
        public var description: String { return self.rawValue }
    }

    public enum ProvisioningType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case fullyMutable = "FULLY_MUTABLE"
        case immutable = "IMMUTABLE"
        case nonProvisionable = "NON_PROVISIONABLE"
        public var description: String { return self.rawValue }
    }

    public enum PublisherStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case unverified = "UNVERIFIED"
        case verified = "VERIFIED"
        public var description: String { return self.rawValue }
    }

    public enum RegionConcurrencyType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case parallel = "PARALLEL"
        case sequential = "SEQUENTIAL"
        public var description: String { return self.rawValue }
    }

    public enum RegistrationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case complete = "COMPLETE"
        case failed = "FAILED"
        case inProgress = "IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum RegistryType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hook = "HOOK"
        case module = "MODULE"
        case resource = "RESOURCE"
        public var description: String { return self.rawValue }
    }

    public enum Replacement: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `false` = "False"
        case `true` = "True"
        case conditional = "Conditional"
        public var description: String { return self.rawValue }
    }

    public enum RequiresRecreation: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case always = "Always"
        case conditionally = "Conditionally"
        case never = "Never"
        public var description: String { return self.rawValue }
    }

    public enum ResourceAttribute: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case creationPolicy = "CreationPolicy"
        case deletionPolicy = "DeletionPolicy"
        case metadata = "Metadata"
        case properties = "Properties"
        case tags = "Tags"
        case updatePolicy = "UpdatePolicy"
        case updateReplacePolicy = "UpdateReplacePolicy"
        public var description: String { return self.rawValue }
    }

    public enum ResourceScanStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case complete = "COMPLETE"
        case expired = "EXPIRED"
        case failed = "FAILED"
        case inProgress = "IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum ResourceSignalStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failure = "FAILURE"
        case success = "SUCCESS"
        public var description: String { return self.rawValue }
    }

    public enum ResourceStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case createComplete = "CREATE_COMPLETE"
        case createFailed = "CREATE_FAILED"
        case createInProgress = "CREATE_IN_PROGRESS"
        case deleteComplete = "DELETE_COMPLETE"
        case deleteFailed = "DELETE_FAILED"
        case deleteInProgress = "DELETE_IN_PROGRESS"
        case deleteSkipped = "DELETE_SKIPPED"
        case exportComplete = "EXPORT_COMPLETE"
        case exportFailed = "EXPORT_FAILED"
        case exportInProgress = "EXPORT_IN_PROGRESS"
        case exportRollbackComplete = "EXPORT_ROLLBACK_COMPLETE"
        case exportRollbackFailed = "EXPORT_ROLLBACK_FAILED"
        case exportRollbackInProgress = "EXPORT_ROLLBACK_IN_PROGRESS"
        case importComplete = "IMPORT_COMPLETE"
        case importFailed = "IMPORT_FAILED"
        case importInProgress = "IMPORT_IN_PROGRESS"
        case importRollbackComplete = "IMPORT_ROLLBACK_COMPLETE"
        case importRollbackFailed = "IMPORT_ROLLBACK_FAILED"
        case importRollbackInProgress = "IMPORT_ROLLBACK_IN_PROGRESS"
        case rollbackComplete = "ROLLBACK_COMPLETE"
        case rollbackFailed = "ROLLBACK_FAILED"
        case rollbackInProgress = "ROLLBACK_IN_PROGRESS"
        case updateComplete = "UPDATE_COMPLETE"
        case updateFailed = "UPDATE_FAILED"
        case updateInProgress = "UPDATE_IN_PROGRESS"
        case updateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE"
        case updateRollbackFailed = "UPDATE_ROLLBACK_FAILED"
        case updateRollbackInProgress = "UPDATE_ROLLBACK_IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum ScanType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case full = "FULL"
        case partial = "PARTIAL"
        public var description: String { return self.rawValue }
    }

    public enum StackDriftDetectionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case detectionComplete = "DETECTION_COMPLETE"
        case detectionFailed = "DETECTION_FAILED"
        case detectionInProgress = "DETECTION_IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum StackDriftStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case drifted = "DRIFTED"
        case inSync = "IN_SYNC"
        case notChecked = "NOT_CHECKED"
        case unknown = "UNKNOWN"
        public var description: String { return self.rawValue }
    }

    public enum StackInstanceDetailedStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cancelled = "CANCELLED"
        case failed = "FAILED"
        case failedImport = "FAILED_IMPORT"
        case inoperable = "INOPERABLE"
        case pending = "PENDING"
        case running = "RUNNING"
        case skippedSuspendedAccount = "SKIPPED_SUSPENDED_ACCOUNT"
        case succeeded = "SUCCEEDED"
        public var description: String { return self.rawValue }
    }

    public enum StackInstanceFilterName: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case detailedStatus = "DETAILED_STATUS"
        case driftStatus = "DRIFT_STATUS"
        case lastOperationId = "LAST_OPERATION_ID"
        public var description: String { return self.rawValue }
    }

    public enum StackInstanceStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case current = "CURRENT"
        case inoperable = "INOPERABLE"
        case outdated = "OUTDATED"
        public var description: String { return self.rawValue }
    }

    public enum StackRefactorActionEntity: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case resource = "RESOURCE"
        case stack = "STACK"
        public var description: String { return self.rawValue }
    }

    public enum StackRefactorActionType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case create = "CREATE"
        case move = "MOVE"
        public var description: String { return self.rawValue }
    }

    public enum StackRefactorDetection: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case auto = "AUTO"
        case manual = "MANUAL"
        public var description: String { return self.rawValue }
    }

    public enum StackRefactorExecutionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case available = "AVAILABLE"
        case executeComplete = "EXECUTE_COMPLETE"
        case executeFailed = "EXECUTE_FAILED"
        case executeInProgress = "EXECUTE_IN_PROGRESS"
        case obsolete = "OBSOLETE"
        case rollbackComplete = "ROLLBACK_COMPLETE"
        case rollbackFailed = "ROLLBACK_FAILED"
        case rollbackInProgress = "ROLLBACK_IN_PROGRESS"
        case unavailable = "UNAVAILABLE"
        public var description: String { return self.rawValue }
    }

    public enum StackRefactorStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case createComplete = "CREATE_COMPLETE"
        case createFailed = "CREATE_FAILED"
        case createInProgress = "CREATE_IN_PROGRESS"
        case deleteComplete = "DELETE_COMPLETE"
        case deleteFailed = "DELETE_FAILED"
        case deleteInProgress = "DELETE_IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum StackResourceDriftStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case deleted = "DELETED"
        case inSync = "IN_SYNC"
        case modified = "MODIFIED"
        case notChecked = "NOT_CHECKED"
        case unknown = "UNKNOWN"
        public var description: String { return self.rawValue }
    }

    public enum StackSetDriftDetectionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case completed = "COMPLETED"
        case failed = "FAILED"
        case inProgress = "IN_PROGRESS"
        case partialSuccess = "PARTIAL_SUCCESS"
        case stopped = "STOPPED"
        public var description: String { return self.rawValue }
    }

    public enum StackSetDriftStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case drifted = "DRIFTED"
        case inSync = "IN_SYNC"
        case notChecked = "NOT_CHECKED"
        public var description: String { return self.rawValue }
    }

    public enum StackSetOperationAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case create = "CREATE"
        case delete = "DELETE"
        case detectDrift = "DETECT_DRIFT"
        case update = "UPDATE"
        public var description: String { return self.rawValue }
    }

    public enum StackSetOperationResultStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cancelled = "CANCELLED"
        case failed = "FAILED"
        case pending = "PENDING"
        case running = "RUNNING"
        case succeeded = "SUCCEEDED"
        public var description: String { return self.rawValue }
    }

    public enum StackSetOperationStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failed = "FAILED"
        case queued = "QUEUED"
        case running = "RUNNING"
        case stopped = "STOPPED"
        case stopping = "STOPPING"
        case succeeded = "SUCCEEDED"
        public var description: String { return self.rawValue }
    }

    public enum StackSetStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case active = "ACTIVE"
        case deleted = "DELETED"
        public var description: String { return self.rawValue }
    }

    public enum StackStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case createComplete = "CREATE_COMPLETE"
        case createFailed = "CREATE_FAILED"
        case createInProgress = "CREATE_IN_PROGRESS"
        case deleteComplete = "DELETE_COMPLETE"
        case deleteFailed = "DELETE_FAILED"
        case deleteInProgress = "DELETE_IN_PROGRESS"
        case importComplete = "IMPORT_COMPLETE"
        case importInProgress = "IMPORT_IN_PROGRESS"
        case importRollbackComplete = "IMPORT_ROLLBACK_COMPLETE"
        case importRollbackFailed = "IMPORT_ROLLBACK_FAILED"
        case importRollbackInProgress = "IMPORT_ROLLBACK_IN_PROGRESS"
        case reviewInProgress = "REVIEW_IN_PROGRESS"
        case rollbackComplete = "ROLLBACK_COMPLETE"
        case rollbackFailed = "ROLLBACK_FAILED"
        case rollbackInProgress = "ROLLBACK_IN_PROGRESS"
        case updateComplete = "UPDATE_COMPLETE"
        case updateCompleteCleanupInProgress = "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"
        case updateFailed = "UPDATE_FAILED"
        case updateInProgress = "UPDATE_IN_PROGRESS"
        case updateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE"
        case updateRollbackCompleteCleanupInProgress = "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"
        case updateRollbackFailed = "UPDATE_ROLLBACK_FAILED"
        case updateRollbackInProgress = "UPDATE_ROLLBACK_IN_PROGRESS"
        public var description: String { return self.rawValue }
    }

    public enum TemplateFormat: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case json = "JSON"
        case yaml = "YAML"
        public var description: String { return self.rawValue }
    }

    public enum TemplateStage: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case original = "Original"
        case processed = "Processed"
        public var description: String { return self.rawValue }
    }

    public enum ThirdPartyType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hook = "HOOK"
        case module = "MODULE"
        case resource = "RESOURCE"
        public var description: String { return self.rawValue }
    }

    public enum TypeTestsStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case failed = "FAILED"
        case inProgress = "IN_PROGRESS"
        case notTested = "NOT_TESTED"
        case passed = "PASSED"
        public var description: String { return self.rawValue }
    }

    public enum VersionBump: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case major = "MAJOR"
        case minor = "MINOR"
        public var description: String { return self.rawValue }
    }

    public enum Visibility: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `private` = "PRIVATE"
        case `public` = "PUBLIC"
        public var description: String { return self.rawValue }
    }

    public enum WarningType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case excludedProperties = "EXCLUDED_PROPERTIES"
        case excludedResources = "EXCLUDED_RESOURCES"
        case mutuallyExclusiveProperties = "MUTUALLY_EXCLUSIVE_PROPERTIES"
        case mutuallyExclusiveTypes = "MUTUALLY_EXCLUSIVE_TYPES"
        case unsupportedProperties = "UNSUPPORTED_PROPERTIES"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct AccountGateResult: AWSDecodableShape {
        /// The status of the account gate function.    SUCCEEDED: The account gate function has determined that the account and Region passes any requirements for a StackSet operation to occur. CloudFormation proceeds with the stack operation in that account and Region.    FAILED: The account gate function has determined that the account and Region doesn't meet the requirements for a StackSet operation to occur. CloudFormation cancels the StackSet operation in that account and Region, and sets the StackSet operation result status for that account and Region to FAILED.    SKIPPED: CloudFormation has skipped calling the account gate function for this account and Region, for one of the following reasons:   An account gate function hasn't been specified for the account and Region. CloudFormation proceeds with the StackSet operation in this account and Region.   The AWSCloudFormationStackSetExecutionRole of the administration account lacks permissions to invoke the function. CloudFormation proceeds with the StackSet operation in this account and Region.   Either no action is necessary, or no action is possible, on the stack. CloudFormation skips the StackSet operation in this account and Region.
        public let status: AccountGateStatus?
        /// The reason for the account gate status assigned to this account and Region for the StackSet operation.
        public let statusReason: String?

        @inlinable
        public init(status: AccountGateStatus? = nil, statusReason: String? = nil) {
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct AccountLimit: AWSDecodableShape {
        /// The name of the account limit. Values: ConcurrentResourcesLimit | StackLimit | StackOutputsLimit
        public let name: String?
        /// The value that's associated with the account limit name.
        public let value: Int?

        @inlinable
        public init(name: String? = nil, value: Int? = nil) {
            self.name = name
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case value = "Value"
        }
    }

    public struct ActivateOrganizationsAccessInput: AWSEncodableShape {
        public init() {}
    }

    public struct ActivateOrganizationsAccessOutput: AWSDecodableShape {
        public init() {}
    }

    public struct ActivateTypeInput: AWSEncodableShape {
        /// Whether to automatically update the extension in this account and Region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated. The default is true.
        public let autoUpdate: Bool?
        /// The name of the IAM execution role to use to activate the extension.
        public let executionRoleArn: String?
        /// Contains logging configuration information for an extension.
        public let loggingConfig: LoggingConfig?
        /// The major version of this extension you want to activate, if multiple major versions are available. The default is the latest major version. CloudFormation uses the latest available minor version of the major version selected. You can specify MajorVersion or VersionBump, but not both.
        public let majorVersion: Int64?
        /// The Amazon Resource Name (ARN) of the public extension. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
        public let publicTypeArn: String?
        /// The ID of the extension publisher. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
        public let publisherId: String?
        /// The extension type. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
        public let type: ThirdPartyType?
        /// The name of the extension. Conditional: You must specify PublicTypeArn, or TypeName, Type, and PublisherId.
        public let typeName: String?
        /// An alias to assign to the public extension in this account and Region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and Region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console. An extension alias must be unique within a given account and Region. You can activate the same public resource multiple times in the same account and Region, using different type name aliases.
        public let typeNameAlias: String?
        /// Manually updates a previously-activated type to a new major or minor version, if available. You can also use this parameter to update the value of AutoUpdate.    MAJOR: CloudFormation updates the extension to the newest major version, if one is available.    MINOR: CloudFormation updates the extension to the newest minor version, if one is available.
        public let versionBump: VersionBump?

        @inlinable
        public init(autoUpdate: Bool? = nil, executionRoleArn: String? = nil, loggingConfig: LoggingConfig? = nil, majorVersion: Int64? = nil, publicTypeArn: String? = nil, publisherId: String? = nil, type: ThirdPartyType? = nil, typeName: String? = nil, typeNameAlias: String? = nil, versionBump: VersionBump? = nil) {
            self.autoUpdate = autoUpdate
            self.executionRoleArn = executionRoleArn
            self.loggingConfig = loggingConfig
            self.majorVersion = majorVersion
            self.publicTypeArn = publicTypeArn
            self.publisherId = publisherId
            self.type = type
            self.typeName = typeName
            self.typeNameAlias = typeNameAlias
            self.versionBump = versionBump
        }

        public func validate(name: String) throws {
            try self.validate(self.executionRoleArn, name: "executionRoleArn", parent: name, max: 256)
            try self.validate(self.executionRoleArn, name: "executionRoleArn", parent: name, min: 1)
            try self.validate(self.executionRoleArn, name: "executionRoleArn", parent: name, pattern: "^arn:.+:iam::[0-9]{12}:role/.+$")
            try self.loggingConfig?.validate(name: "\(name).loggingConfig")
            try self.validate(self.majorVersion, name: "majorVersion", parent: name, max: 100000)
            try self.validate(self.majorVersion, name: "majorVersion", parent: name, min: 1)
            try self.validate(self.publicTypeArn, name: "publicTypeArn", parent: name, max: 1024)
            try self.validate(self.publicTypeArn, name: "publicTypeArn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}::type/.+/[0-9a-zA-Z]{12,40}/.+$")
            try self.validate(self.publisherId, name: "publisherId", parent: name, max: 40)
            try self.validate(self.publisherId, name: "publisherId", parent: name, min: 1)
            try self.validate(self.publisherId, name: "publisherId", parent: name, pattern: "^[0-9a-zA-Z]{12,40}$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
            try self.validate(self.typeNameAlias, name: "typeNameAlias", parent: name, max: 204)
            try self.validate(self.typeNameAlias, name: "typeNameAlias", parent: name, min: 10)
            try self.validate(self.typeNameAlias, name: "typeNameAlias", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case autoUpdate = "AutoUpdate"
            case executionRoleArn = "ExecutionRoleArn"
            case loggingConfig = "LoggingConfig"
            case majorVersion = "MajorVersion"
            case publicTypeArn = "PublicTypeArn"
            case publisherId = "PublisherId"
            case type = "Type"
            case typeName = "TypeName"
            case typeNameAlias = "TypeNameAlias"
            case versionBump = "VersionBump"
        }
    }

    public struct ActivateTypeOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the activated extension in this account and Region.
        public let arn: String?

        @inlinable
        public init(arn: String? = nil) {
            self.arn = arn
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
        }
    }

    public struct AutoDeployment: AWSEncodableShape & AWSDecodableShape {
        /// If set to true, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions.
        public let enabled: Bool?
        /// If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True.
        public let retainStacksOnAccountRemoval: Bool?

        @inlinable
        public init(enabled: Bool? = nil, retainStacksOnAccountRemoval: Bool? = nil) {
            self.enabled = enabled
            self.retainStacksOnAccountRemoval = retainStacksOnAccountRemoval
        }

        private enum CodingKeys: String, CodingKey {
            case enabled = "Enabled"
            case retainStacksOnAccountRemoval = "RetainStacksOnAccountRemoval"
        }
    }

    public struct BatchDescribeTypeConfigurationsError: AWSDecodableShape {
        /// The error code.
        public let errorCode: String?
        /// The error message.
        public let errorMessage: String?
        /// Identifying information for the configuration of a CloudFormation extension.
        public let typeConfigurationIdentifier: TypeConfigurationIdentifier?

        @inlinable
        public init(errorCode: String? = nil, errorMessage: String? = nil, typeConfigurationIdentifier: TypeConfigurationIdentifier? = nil) {
            self.errorCode = errorCode
            self.errorMessage = errorMessage
            self.typeConfigurationIdentifier = typeConfigurationIdentifier
        }

        private enum CodingKeys: String, CodingKey {
            case errorCode = "ErrorCode"
            case errorMessage = "ErrorMessage"
            case typeConfigurationIdentifier = "TypeConfigurationIdentifier"
        }
    }

    public struct BatchDescribeTypeConfigurationsInput: AWSEncodableShape {
        /// The list of identifiers for the desired extension configurations.
        @OptionalCustomCoding<StandardArrayCoder<TypeConfigurationIdentifier>>
        public var typeConfigurationIdentifiers: [TypeConfigurationIdentifier]?

        @inlinable
        public init(typeConfigurationIdentifiers: [TypeConfigurationIdentifier]? = nil) {
            self.typeConfigurationIdentifiers = typeConfigurationIdentifiers
        }

        public func validate(name: String) throws {
            try self.typeConfigurationIdentifiers?.forEach {
                try $0.validate(name: "\(name).typeConfigurationIdentifiers[]")
            }
            try self.validate(self.typeConfigurationIdentifiers, name: "typeConfigurationIdentifiers", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case typeConfigurationIdentifiers = "TypeConfigurationIdentifiers"
        }
    }

    public struct BatchDescribeTypeConfigurationsOutput: AWSDecodableShape {
        /// A list of information concerning any errors generated during the setting of the specified configurations.
        @OptionalCustomCoding<StandardArrayCoder<BatchDescribeTypeConfigurationsError>>
        public var errors: [BatchDescribeTypeConfigurationsError]?
        /// A list of any of the specified extension configurations from the CloudFormation registry.
        @OptionalCustomCoding<StandardArrayCoder<TypeConfigurationDetails>>
        public var typeConfigurations: [TypeConfigurationDetails]?
        /// A list of any of the specified extension configurations that CloudFormation could not process for any reason.
        @OptionalCustomCoding<StandardArrayCoder<TypeConfigurationIdentifier>>
        public var unprocessedTypeConfigurations: [TypeConfigurationIdentifier]?

        @inlinable
        public init(errors: [BatchDescribeTypeConfigurationsError]? = nil, typeConfigurations: [TypeConfigurationDetails]? = nil, unprocessedTypeConfigurations: [TypeConfigurationIdentifier]? = nil) {
            self.errors = errors
            self.typeConfigurations = typeConfigurations
            self.unprocessedTypeConfigurations = unprocessedTypeConfigurations
        }

        private enum CodingKeys: String, CodingKey {
            case errors = "Errors"
            case typeConfigurations = "TypeConfigurations"
            case unprocessedTypeConfigurations = "UnprocessedTypeConfigurations"
        }
    }

    public struct CancelUpdateStackInput: AWSEncodableShape {
        /// A unique identifier for this CancelUpdateStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to cancel an update on a stack with the same name. You might retry CancelUpdateStack requests to ensure that CloudFormation successfully received them.
        public let clientRequestToken: String?
        ///  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request:  { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }   The name or the unique stack ID that's associated with the stack.
        public let stackName: String?

        @inlinable
        public init(clientRequestToken: String? = nil, stackName: String? = nil) {
            self.clientRequestToken = clientRequestToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case stackName = "StackName"
        }
    }

    public struct Change: AWSDecodableShape {
        /// Is either null, if no Hooks invoke for the resource, or contains the number of Hooks that will invoke for the resource.
        public let hookInvocationCount: Int?
        /// A ResourceChange structure that describes the resource and action that CloudFormation will perform.
        public let resourceChange: ResourceChange?
        /// The type of entity that CloudFormation changes.    Resource This change is for a resource.
        public let type: ChangeType?

        @inlinable
        public init(hookInvocationCount: Int? = nil, resourceChange: ResourceChange? = nil, type: ChangeType? = nil) {
            self.hookInvocationCount = hookInvocationCount
            self.resourceChange = resourceChange
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case hookInvocationCount = "HookInvocationCount"
            case resourceChange = "ResourceChange"
            case type = "Type"
        }
    }

    public struct ChangeSetHook: AWSDecodableShape {
        /// Specify the Hook failure mode for non-compliant resources in the followings ways.    FAIL Stops provisioning resources.    WARN Allows provisioning to continue with a warning message.
        public let failureMode: HookFailureMode?
        /// The specific point in the provisioning process where the Hook is invoked.
        public let invocationPoint: HookInvocationPoint?
        /// Specifies details about the target that the Hook will run against.
        public let targetDetails: ChangeSetHookTargetDetails?
        /// The version ID of the type configuration.
        public let typeConfigurationVersionId: String?
        /// The unique name for your Hook. Specifies a three-part namespace for your Hook, with a recommended pattern of Organization::Service::Hook.  The following organization namespaces are reserved and can't be used in your Hook type names:    Alexa     AMZN     Amazon     ASK     AWS     Custom     Dev
        public let typeName: String?
        /// The version ID of the type specified.
        public let typeVersionId: String?

        @inlinable
        public init(failureMode: HookFailureMode? = nil, invocationPoint: HookInvocationPoint? = nil, targetDetails: ChangeSetHookTargetDetails? = nil, typeConfigurationVersionId: String? = nil, typeName: String? = nil, typeVersionId: String? = nil) {
            self.failureMode = failureMode
            self.invocationPoint = invocationPoint
            self.targetDetails = targetDetails
            self.typeConfigurationVersionId = typeConfigurationVersionId
            self.typeName = typeName
            self.typeVersionId = typeVersionId
        }

        private enum CodingKeys: String, CodingKey {
            case failureMode = "FailureMode"
            case invocationPoint = "InvocationPoint"
            case targetDetails = "TargetDetails"
            case typeConfigurationVersionId = "TypeConfigurationVersionId"
            case typeName = "TypeName"
            case typeVersionId = "TypeVersionId"
        }
    }

    public struct ChangeSetHookResourceTargetDetails: AWSDecodableShape {
        /// The resource's logical ID, which is defined in the stack's template.
        public let logicalResourceId: String?
        /// Specifies the action of the resource.
        public let resourceAction: ChangeAction?
        /// The type of CloudFormation resource, such as AWS::S3::Bucket.
        public let resourceType: String?

        @inlinable
        public init(logicalResourceId: String? = nil, resourceAction: ChangeAction? = nil, resourceType: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.resourceAction = resourceAction
            self.resourceType = resourceType
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case resourceAction = "ResourceAction"
            case resourceType = "ResourceType"
        }
    }

    public struct ChangeSetHookTargetDetails: AWSDecodableShape {
        /// Required if TargetType is RESOURCE.
        public let resourceTargetDetails: ChangeSetHookResourceTargetDetails?
        /// The name of the type.
        public let targetType: HookTargetType?

        @inlinable
        public init(resourceTargetDetails: ChangeSetHookResourceTargetDetails? = nil, targetType: HookTargetType? = nil) {
            self.resourceTargetDetails = resourceTargetDetails
            self.targetType = targetType
        }

        private enum CodingKeys: String, CodingKey {
            case resourceTargetDetails = "ResourceTargetDetails"
            case targetType = "TargetType"
        }
    }

    public struct ChangeSetSummary: AWSDecodableShape {
        /// The ID of the change set.
        public let changeSetId: String?
        /// The name of the change set.
        public let changeSetName: String?
        /// The start time when the change set was created, in UTC.
        public let creationTime: Date?
        /// Descriptive information about the change set.
        public let description: String?
        /// If the change set execution status is AVAILABLE, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an UNAVAILABLE state because CloudFormation is still creating it or in an OBSOLETE state because the stack was already updated.
        public let executionStatus: ExecutionStatus?
        /// Indicates if the change set imports resources that already exist.
        public let importExistingResources: Bool?
        /// Specifies the current setting of IncludeNestedStacks for the change set.
        public let includeNestedStacks: Bool?
        /// The parent change set ID.
        public let parentChangeSetId: String?
        /// The root change set ID.
        public let rootChangeSetId: String?
        /// The ID of the stack with which the change set is associated.
        public let stackId: String?
        /// The name of the stack with which the change set is associated.
        public let stackName: String?
        /// The state of the change set, such as CREATE_PENDING, CREATE_COMPLETE, or FAILED.
        public let status: ChangeSetStatus?
        /// A description of the change set's status. For example, if your change set is in the FAILED state, CloudFormation shows the error message.
        public let statusReason: String?

        @inlinable
        public init(changeSetId: String? = nil, changeSetName: String? = nil, creationTime: Date? = nil, description: String? = nil, executionStatus: ExecutionStatus? = nil, importExistingResources: Bool? = nil, includeNestedStacks: Bool? = nil, parentChangeSetId: String? = nil, rootChangeSetId: String? = nil, stackId: String? = nil, stackName: String? = nil, status: ChangeSetStatus? = nil, statusReason: String? = nil) {
            self.changeSetId = changeSetId
            self.changeSetName = changeSetName
            self.creationTime = creationTime
            self.description = description
            self.executionStatus = executionStatus
            self.importExistingResources = importExistingResources
            self.includeNestedStacks = includeNestedStacks
            self.parentChangeSetId = parentChangeSetId
            self.rootChangeSetId = rootChangeSetId
            self.stackId = stackId
            self.stackName = stackName
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetId = "ChangeSetId"
            case changeSetName = "ChangeSetName"
            case creationTime = "CreationTime"
            case description = "Description"
            case executionStatus = "ExecutionStatus"
            case importExistingResources = "ImportExistingResources"
            case includeNestedStacks = "IncludeNestedStacks"
            case parentChangeSetId = "ParentChangeSetId"
            case rootChangeSetId = "RootChangeSetId"
            case stackId = "StackId"
            case stackName = "StackName"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct ContinueUpdateRollbackInput: AWSEncodableShape {
        /// A unique identifier for this ContinueUpdateRollback request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to continue the rollback to a stack with the same name. You might retry ContinueUpdateRollback requests to ensure that CloudFormation successfully received them.
        public let clientRequestToken: String?
        /// A list of the logical IDs of the resources that CloudFormation skips during the continue update rollback operation. You can specify only resources that are in the UPDATE_FAILED state because a rollback failed. You can't specify resources that are in the UPDATE_FAILED state for other reasons, for example, because an update was canceled. To check why a resource update failed, use the DescribeStackResources action, and view the resource status reason.  Specify this property to skip rolling back resources that CloudFormation can't successfully roll back. We recommend that you  troubleshoot resources before skipping them. CloudFormation sets the status of the specified resources to UPDATE_COMPLETE and continues to roll back the stack. After the rollback is complete, the state of the skipped resources will be inconsistent with the state of the resources in the stack template. Before performing another stack update, you must update the stack or resources to be consistent with each other. If you don't, subsequent stack updates might fail, and the stack will become unrecoverable.  Specify the minimum number of resources required to successfully roll back your stack. For example, a failed resource update might cause dependent resources to fail. In this case, it might not be necessary to skip the dependent resources. To skip resources that are part of nested stacks, use the following format: NestedStackName.ResourceLogicalID. If you want to specify the logical ID of a stack resource (Type: AWS::CloudFormation::Stack) in the ResourcesToSkip list, then its corresponding embedded stack must be in one of the following states: DELETE_IN_PROGRESS, DELETE_COMPLETE, or DELETE_FAILED.  Don't confuse a child stack's name with its corresponding logical ID defined in the parent stack. For an example of a continue update rollback operation with nested stacks, see Continue rolling back from failed nested stack updates.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourcesToSkip: [String]?
        /// The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to roll back the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least permission. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.
        public let roleARN: String?
        /// The name or the unique ID of the stack that you want to continue rolling back.  Don't specify the name of a nested stack (a stack that was created by using the AWS::CloudFormation::Stack resource). Instead, use this operation on the parent stack (the stack that contains the AWS::CloudFormation::Stack resource).
        public let stackName: String?

        @inlinable
        public init(clientRequestToken: String? = nil, resourcesToSkip: [String]? = nil, roleARN: String? = nil, stackName: String? = nil) {
            self.clientRequestToken = clientRequestToken
            self.resourcesToSkip = resourcesToSkip
            self.roleARN = roleARN
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.resourcesToSkip?.forEach {
                try validate($0, name: "resourcesToSkip[]", parent: name, pattern: "^[a-zA-Z0-9]+|[a-zA-Z][-a-zA-Z0-9]*\\.[a-zA-Z0-9]+$")
            }
            try self.validate(self.roleARN, name: "roleARN", parent: name, max: 2048)
            try self.validate(self.roleARN, name: "roleARN", parent: name, min: 20)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case resourcesToSkip = "ResourcesToSkip"
            case roleARN = "RoleARN"
            case stackName = "StackName"
        }
    }

    public struct ContinueUpdateRollbackOutput: AWSDecodableShape {
        public init() {}
    }

    public struct CreateChangeSetInput: AWSEncodableShape {
        /// In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.     AWS::IAM::AccessKey      AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::ManagedPolicy      AWS::IAM::Policy      AWS::IAM::Role      AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.  This capacity doesn't apply to creating change sets, and specifying it when creating change sets has no effect. If you want to create a stack from a stack template that contains macros and nested stacks, you must create or update the stack directly from the template using the CreateStack or UpdateStack action, and specifying this capability.  For more information about macros, see Perform custom processing on CloudFormation templates with template macros.    Only one of the Capabilities and ResourceType parameters can be specified.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// The name of the change set. The name must be unique among all change sets that are associated with the specified stack. A change set name can contain only alphanumeric, case sensitive characters, and hyphens. It must start with an alphabetical character and can't exceed 128 characters.
        public let changeSetName: String?
        /// The type of change set operation. To create a change set for a new stack, specify CREATE. To create a change set for an existing stack, specify UPDATE. To create a change set for an import operation, specify IMPORT. If you create a change set for a new stack, CloudFormation creates a stack with a unique stack ID, but no template or resources. The stack will be in the REVIEW_IN_PROGRESS state until you execute the change set. By default, CloudFormation specifies UPDATE. You can't use the UPDATE type to create a change set for a new stack or the CREATE type to create a change set for an existing stack.
        public let changeSetType: ChangeSetType?
        /// A unique identifier for this CreateChangeSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another change set with the same name. You might retry CreateChangeSet requests to ensure that CloudFormation successfully received them.
        public let clientToken: String?
        /// A description to help you identify this change set.
        public let description: String?
        /// Indicates if the change set auto-imports resources that already exist. For more information, see Import Amazon Web Services resources into a CloudFormation stack automatically in the CloudFormation User Guide.  This parameter can only import resources that have custom names in templates. For more information, see name type in the CloudFormation User Guide. To import resources that do not accept custom names, such as EC2 instances, use the ResourcesToImport parameter instead.
        public let importExistingResources: Bool?
        /// Creates a change set for the all nested stacks specified in the template. The default behavior of this action is set to False. To include nested sets in a change set, specify True.
        public let includeNestedStacks: Bool?
        /// The Amazon Resource Names (ARNs) of Amazon SNS topics that CloudFormation associates with the stack. To remove all associated notification topics, specify an empty list.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var notificationARNs: [String]?
        /// Determines what action will be taken if stack creation fails. If this parameter is specified, the DisableRollback parameter to the ExecuteChangeSet API operation must not be specified. This must be one of these values:    DELETE - Deletes the change set if the stack creation fails. This is only valid when the ChangeSetType parameter is set to CREATE. If the deletion of the stack fails, the status of the stack is DELETE_FAILED.    DO_NOTHING - if the stack creation fails, do nothing. This is equivalent to specifying true for the DisableRollback parameter to the ExecuteChangeSet API operation.    ROLLBACK - if the stack creation fails, roll back the stack. This is equivalent to specifying false for the DisableRollback parameter to the ExecuteChangeSet API operation.   For nested stacks, when the OnStackFailure parameter is set to DELETE for the change set for the parent stack, any failure in a child stack will cause the parent stack creation to fail and all stacks to be deleted.
        public let onStackFailure: OnStackFailure?
        /// A list of Parameter structures that specify input parameters for the change set. For more information, see the Parameter data type.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// The resources to import into your stack.
        @OptionalCustomCoding<StandardArrayCoder<ResourceToImport>>
        public var resourcesToImport: [ResourceToImport]?
        /// The template resource types that you have permissions to work with if you execute this change set, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. If the list of resource types doesn't include a resource type that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for condition keys in IAM policies for CloudFormation. For more information, see Control access with Identity and Access Management in the CloudFormation User Guide.  Only one of the Capabilities and ResourceType parameters can be specified.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourceTypes: [String]?
        /// The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes when executing the change set. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least permission. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that is generated from your user credentials.
        public let roleARN: String?
        /// The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
        public let rollbackConfiguration: RollbackConfiguration?
        /// The name or the unique ID of the stack for which you are creating a change set. CloudFormation generates the change set by comparing this stack's information with the information that you submit, such as a modified template or different parameter input values.
        public let stackName: String?
        /// Key-value pairs to associate with this stack. CloudFormation also propagates these tags to resources in the stack. You can specify a maximum of 50 tags.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// A structure that contains the body of the revised template, with a minimum length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates the change set by comparing this template with the template of the stack that you specified. Conditional: You must specify only TemplateBody or TemplateURL.
        public let templateBody: String?
        /// The URL of the file that contains the revised template. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. CloudFormation generates the change set by comparing this template with the stack that you specified. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. Conditional: You must specify only TemplateBody or TemplateURL.
        public let templateURL: String?
        /// Whether to reuse the template that's associated with the stack to create the change set.
        public let usePreviousTemplate: Bool?

        @inlinable
        public init(capabilities: [Capability]? = nil, changeSetName: String? = nil, changeSetType: ChangeSetType? = nil, clientToken: String? = nil, description: String? = nil, importExistingResources: Bool? = nil, includeNestedStacks: Bool? = nil, notificationARNs: [String]? = nil, onStackFailure: OnStackFailure? = nil, parameters: [Parameter]? = nil, resourcesToImport: [ResourceToImport]? = nil, resourceTypes: [String]? = nil, roleARN: String? = nil, rollbackConfiguration: RollbackConfiguration? = nil, stackName: String? = nil, tags: [Tag]? = nil, templateBody: String? = nil, templateURL: String? = nil, usePreviousTemplate: Bool? = nil) {
            self.capabilities = capabilities
            self.changeSetName = changeSetName
            self.changeSetType = changeSetType
            self.clientToken = clientToken
            self.description = description
            self.importExistingResources = importExistingResources
            self.includeNestedStacks = includeNestedStacks
            self.notificationARNs = notificationARNs
            self.onStackFailure = onStackFailure
            self.parameters = parameters
            self.resourcesToImport = resourcesToImport
            self.resourceTypes = resourceTypes
            self.roleARN = roleARN
            self.rollbackConfiguration = rollbackConfiguration
            self.stackName = stackName
            self.tags = tags
            self.templateBody = templateBody
            self.templateURL = templateURL
            self.usePreviousTemplate = usePreviousTemplate
        }

        public func validate(name: String) throws {
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, max: 128)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, min: 1)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*$")
            try self.validate(self.clientToken, name: "clientToken", parent: name, max: 128)
            try self.validate(self.clientToken, name: "clientToken", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, max: 1024)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.notificationARNs, name: "notificationARNs", parent: name, max: 5)
            try self.resourcesToImport?.forEach {
                try $0.validate(name: "\(name).resourcesToImport[]")
            }
            try self.validate(self.resourcesToImport, name: "resourcesToImport", parent: name, max: 200)
            try self.resourceTypes?.forEach {
                try validate($0, name: "resourceTypes[]", parent: name, max: 256)
                try validate($0, name: "resourceTypes[]", parent: name, min: 1)
            }
            try self.validate(self.roleARN, name: "roleARN", parent: name, max: 2048)
            try self.validate(self.roleARN, name: "roleARN", parent: name, min: 20)
            try self.rollbackConfiguration?.validate(name: "\(name).rollbackConfiguration")
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case changeSetName = "ChangeSetName"
            case changeSetType = "ChangeSetType"
            case clientToken = "ClientToken"
            case description = "Description"
            case importExistingResources = "ImportExistingResources"
            case includeNestedStacks = "IncludeNestedStacks"
            case notificationARNs = "NotificationARNs"
            case onStackFailure = "OnStackFailure"
            case parameters = "Parameters"
            case resourcesToImport = "ResourcesToImport"
            case resourceTypes = "ResourceTypes"
            case roleARN = "RoleARN"
            case rollbackConfiguration = "RollbackConfiguration"
            case stackName = "StackName"
            case tags = "Tags"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
            case usePreviousTemplate = "UsePreviousTemplate"
        }
    }

    public struct CreateChangeSetOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the change set.
        public let id: String?
        /// The unique ID of the stack.
        public let stackId: String?

        @inlinable
        public init(id: String? = nil, stackId: String? = nil) {
            self.id = id
            self.stackId = stackId
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case stackId = "StackId"
        }
    }

    public struct CreateGeneratedTemplateInput: AWSEncodableShape {
        /// The name assigned to the generated template.
        public let generatedTemplateName: String?
        /// An optional list of resources to be included in the generated template. If no resources are specified,the template will be created without any resources. Resources can be added to the template using the UpdateGeneratedTemplate API action.
        @OptionalCustomCoding<StandardArrayCoder<ResourceDefinition>>
        public var resources: [ResourceDefinition]?
        /// An optional name or ARN of a stack to use as the base stack for the generated template.
        public let stackName: String?
        /// The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.
        public let templateConfiguration: TemplateConfiguration?

        @inlinable
        public init(generatedTemplateName: String? = nil, resources: [ResourceDefinition]? = nil, stackName: String? = nil, templateConfiguration: TemplateConfiguration? = nil) {
            self.generatedTemplateName = generatedTemplateName
            self.resources = resources
            self.stackName = stackName
            self.templateConfiguration = templateConfiguration
        }

        public func validate(name: String) throws {
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, max: 128)
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, min: 1)
            try self.resources?.forEach {
                try $0.validate(name: "\(name).resources[]")
            }
            try self.validate(self.resources, name: "resources", parent: name, max: 500)
            try self.validate(self.resources, name: "resources", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case generatedTemplateName = "GeneratedTemplateName"
            case resources = "Resources"
            case stackName = "StackName"
            case templateConfiguration = "TemplateConfiguration"
        }
    }

    public struct CreateGeneratedTemplateOutput: AWSDecodableShape {
        /// The ID of the generated template.
        public let generatedTemplateId: String?

        @inlinable
        public init(generatedTemplateId: String? = nil) {
            self.generatedTemplateId = generatedTemplateId
        }

        private enum CodingKeys: String, CodingKey {
            case generatedTemplateId = "GeneratedTemplateId"
        }
    }

    public struct CreateStackInput: AWSEncodableShape {
        /// In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.    AWS::IAM::AccessKey     AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::ManagedPolicy     AWS::IAM::Policy     AWS::IAM::Role     AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation. If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability.  You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs. Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.  For more information, see Perform custom processing on CloudFormation templates with template macros.    Only one of the Capabilities and ResourceType parameters can be specified.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// A unique identifier for this CreateStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create a stack with the same name. You might retry CreateStack requests to ensure that CloudFormation successfully received them. All events initiated by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
        public let clientRequestToken: String?
        /// Set to true to disable rollback of the stack if stack creation failed. You can specify either DisableRollback or OnFailure, but not both. Default: false
        public let disableRollback: Bool?
        /// Whether to enable termination protection on the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protect CloudFormation stacks from being deleted in the CloudFormation User Guide. Termination protection is deactivated on stacks by default. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.
        public let enableTerminationProtection: Bool?
        /// The Amazon SNS topic ARNs to publish stack related events. You can find your Amazon SNS topic ARNs using the Amazon SNS console or your Command Line Interface (CLI).
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var notificationARNs: [String]?
        /// Determines what action will be taken if stack creation fails. This must be one of: DO_NOTHING, ROLLBACK, or DELETE. You can specify either OnFailure or DisableRollback, but not both.  Although the default setting is ROLLBACK, there is one exception. This exception occurs when a StackSet attempts to deploy a stack instance and the stack instance fails to create successfully. In this case, the CreateStack call overrides the default setting and sets the value of OnFailure to DELETE.  Default: ROLLBACK
        public let onFailure: OnFailure?
        /// A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// The template resource types that you have permissions to work with for this create stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. Use the following syntax to describe template resource types: AWS::* (for all Amazon Web Services resources), Custom::* (for all custom resources), Custom::logical_ID (for a specific custom resource), AWS::service_name::* (for all resources of a particular Amazon Web Services service), and AWS::service_name::resource_logical_ID (for a specific Amazon Web Services resource). If the list of resource types doesn't include a resource that you're creating, the stack creation fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Control access with Identity and Access Management.  Only one of the Capabilities and ResourceType parameters can be specified.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourceTypes: [String]?
        /// When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
        public let retainExceptOnCreate: Bool?
        /// The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to create the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.
        public let roleARN: String?
        /// The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
        public let rollbackConfiguration: RollbackConfiguration?
        /// The name that's associated with the stack. The name must be unique in the Region in which you are creating the stack.  A stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetical character and can't be longer than 128 characters.
        public let stackName: String?
        /// Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
        public let stackPolicyBody: String?
        /// Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
        public let stackPolicyURL: String?
        /// Key-value pairs to associate with this stack. CloudFormation also propagates these tags to the resources created in the stack. A maximum number of 50 tags can be specified.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify either TemplateBody or TemplateURL, but not both.
        public let templateBody: String?
        /// The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.
        public let templateURL: String?
        /// The amount of time that can pass before the stack status becomes CREATE_FAILED; if DisableRollback is not set or is set to false, the stack will be rolled back.
        public let timeoutInMinutes: Int?

        @inlinable
        public init(capabilities: [Capability]? = nil, clientRequestToken: String? = nil, disableRollback: Bool? = nil, enableTerminationProtection: Bool? = nil, notificationARNs: [String]? = nil, onFailure: OnFailure? = nil, parameters: [Parameter]? = nil, resourceTypes: [String]? = nil, retainExceptOnCreate: Bool? = nil, roleARN: String? = nil, rollbackConfiguration: RollbackConfiguration? = nil, stackName: String? = nil, stackPolicyBody: String? = nil, stackPolicyURL: String? = nil, tags: [Tag]? = nil, templateBody: String? = nil, templateURL: String? = nil, timeoutInMinutes: Int? = nil) {
            self.capabilities = capabilities
            self.clientRequestToken = clientRequestToken
            self.disableRollback = disableRollback
            self.enableTerminationProtection = enableTerminationProtection
            self.notificationARNs = notificationARNs
            self.onFailure = onFailure
            self.parameters = parameters
            self.resourceTypes = resourceTypes
            self.retainExceptOnCreate = retainExceptOnCreate
            self.roleARN = roleARN
            self.rollbackConfiguration = rollbackConfiguration
            self.stackName = stackName
            self.stackPolicyBody = stackPolicyBody
            self.stackPolicyURL = stackPolicyURL
            self.tags = tags
            self.templateBody = templateBody
            self.templateURL = templateURL
            self.timeoutInMinutes = timeoutInMinutes
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.notificationARNs, name: "notificationARNs", parent: name, max: 5)
            try self.resourceTypes?.forEach {
                try validate($0, name: "resourceTypes[]", parent: name, max: 256)
                try validate($0, name: "resourceTypes[]", parent: name, min: 1)
            }
            try self.validate(self.roleARN, name: "roleARN", parent: name, max: 2048)
            try self.validate(self.roleARN, name: "roleARN", parent: name, min: 20)
            try self.rollbackConfiguration?.validate(name: "\(name).rollbackConfiguration")
            try self.validate(self.stackPolicyBody, name: "stackPolicyBody", parent: name, max: 16384)
            try self.validate(self.stackPolicyBody, name: "stackPolicyBody", parent: name, min: 1)
            try self.validate(self.stackPolicyURL, name: "stackPolicyURL", parent: name, max: 5120)
            try self.validate(self.stackPolicyURL, name: "stackPolicyURL", parent: name, min: 1)
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
            try self.validate(self.timeoutInMinutes, name: "timeoutInMinutes", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case clientRequestToken = "ClientRequestToken"
            case disableRollback = "DisableRollback"
            case enableTerminationProtection = "EnableTerminationProtection"
            case notificationARNs = "NotificationARNs"
            case onFailure = "OnFailure"
            case parameters = "Parameters"
            case resourceTypes = "ResourceTypes"
            case retainExceptOnCreate = "RetainExceptOnCreate"
            case roleARN = "RoleARN"
            case rollbackConfiguration = "RollbackConfiguration"
            case stackName = "StackName"
            case stackPolicyBody = "StackPolicyBody"
            case stackPolicyURL = "StackPolicyURL"
            case tags = "Tags"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
            case timeoutInMinutes = "TimeoutInMinutes"
        }
    }

    public struct CreateStackInstancesInput: AWSEncodableShape {
        /// [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts that you want to create stack instances in the specified Region(s) for. You can specify Accounts or DeploymentTargets, but not both.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var accounts: [String]?
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// [Service-managed permissions] The Organizations accounts in which to create stack instances in the specified Amazon Web Services Regions. You can specify Accounts or DeploymentTargets, but not both.
        public let deploymentTargets: DeploymentTargets?
        /// The unique identifier for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically. Repeating this StackSet operation with a new operation ID retries all stack instances whose status is OUTDATED.
        public let operationId: String?
        /// Preferences for how CloudFormation performs this StackSet operation.
        public let operationPreferences: StackSetOperationPreferences?
        /// A list of StackSet parameters whose values you want to override in the selected stack instances. Any overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. When specifying parameters and their values, be aware of how CloudFormation sets parameter values during stack instance operations:   To override the current value for a parameter, include the parameter and specify its value.   To leave an overridden parameter set to its present value, include the parameter and specify UsePreviousValue as true. (You can't specify both a value and set UsePreviousValue to true.)   To set an overridden parameter back to the value specified in the StackSet, specify a parameter list but don't include the parameter in the list.   To leave all parameters set to their present values, don't specify this property at all.   During StackSet updates, any parameter values overridden for a stack instance aren't updated, but retain their overridden value. You can only override the parameter values that are specified in the StackSet; to add or delete a parameter itself, use UpdateStackSet to update the StackSet template.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameterOverrides: [Parameter]?
        /// The names of one or more Amazon Web Services Regions where you want to create stack instances using the specified Amazon Web Services accounts.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regions: [String]?
        /// The name or unique ID of the StackSet that you want to create stack instances from.
        public let stackSetName: String?

        @inlinable
        public init(accounts: [String]? = nil, callAs: CallAs? = nil, deploymentTargets: DeploymentTargets? = nil, operationId: String? = CreateStackInstancesInput.idempotencyToken(), operationPreferences: StackSetOperationPreferences? = nil, parameterOverrides: [Parameter]? = nil, regions: [String]? = nil, stackSetName: String? = nil) {
            self.accounts = accounts
            self.callAs = callAs
            self.deploymentTargets = deploymentTargets
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.parameterOverrides = parameterOverrides
            self.regions = regions
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.accounts?.forEach {
                try validate($0, name: "accounts[]", parent: name, pattern: "^[0-9]{12}$")
            }
            try self.deploymentTargets?.validate(name: "\(name).deploymentTargets")
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.operationPreferences?.validate(name: "\(name).operationPreferences")
            try self.regions?.forEach {
                try validate($0, name: "regions[]", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case accounts = "Accounts"
            case callAs = "CallAs"
            case deploymentTargets = "DeploymentTargets"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case parameterOverrides = "ParameterOverrides"
            case regions = "Regions"
            case stackSetName = "StackSetName"
        }
    }

    public struct CreateStackInstancesOutput: AWSDecodableShape {
        /// The unique identifier for this StackSet operation.
        public let operationId: String?

        @inlinable
        public init(operationId: String? = nil) {
            self.operationId = operationId
        }

        private enum CodingKeys: String, CodingKey {
            case operationId = "OperationId"
        }
    }

    public struct CreateStackOutput: AWSDecodableShape {
        /// Unique identifier of the stack.
        public let stackId: String?

        @inlinable
        public init(stackId: String? = nil) {
            self.stackId = stackId
        }

        private enum CodingKeys: String, CodingKey {
            case stackId = "StackId"
        }
    }

    public struct CreateStackRefactorInput: AWSEncodableShape {
        /// A description to help you identify the stack refactor.
        public let description: String?
        /// Determines if a new stack is created with the refactor.
        public let enableStackCreation: Bool?
        /// The mappings for the stack resource Source and stack resource Destination.
        @OptionalCustomCoding<StandardArrayCoder<ResourceMapping>>
        public var resourceMappings: [ResourceMapping]?
        /// The stacks being refactored.
        @OptionalCustomCoding<StandardArrayCoder<StackDefinition>>
        public var stackDefinitions: [StackDefinition]?

        @inlinable
        public init(description: String? = nil, enableStackCreation: Bool? = nil, resourceMappings: [ResourceMapping]? = nil, stackDefinitions: [StackDefinition]? = nil) {
            self.description = description
            self.enableStackCreation = enableStackCreation
            self.resourceMappings = resourceMappings
            self.stackDefinitions = stackDefinitions
        }

        public func validate(name: String) throws {
            try self.validate(self.description, name: "description", parent: name, max: 1024)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.stackDefinitions?.forEach {
                try $0.validate(name: "\(name).stackDefinitions[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case enableStackCreation = "EnableStackCreation"
            case resourceMappings = "ResourceMappings"
            case stackDefinitions = "StackDefinitions"
        }
    }

    public struct CreateStackRefactorOutput: AWSDecodableShape {
        /// The ID associated with the stack refactor created from the CreateStackRefactor action.
        public let stackRefactorId: String?

        @inlinable
        public init(stackRefactorId: String? = nil) {
            self.stackRefactorId = stackRefactorId
        }

        private enum CodingKeys: String, CodingKey {
            case stackRefactorId = "StackRefactorId"
        }
    }

    public struct CreateStackSetInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the IAM role to use to create this StackSet. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide. Valid only if the permissions model is SELF_MANAGED.
        public let administrationRoleARN: String?
        /// Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User Guide. Required if the permissions model is SERVICE_MANAGED. (Not used with self-managed permissions.)
        public let autoDeployment: AutoDeployment?
        /// Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   To create a StackSet with service-managed permissions while signed in to the management account, specify SELF.   To create a StackSet with service-managed permissions while signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated admin in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.   StackSets with service-managed permissions are created in the management account, including StackSets that are created by delegated administrators. Valid only if the permissions model is SERVICE_MANAGED.
        public let callAs: CallAs?
        /// In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.    AWS::IAM::AccessKey     AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::Policy     AWS::IAM::Role     AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some templates reference macros. If your StackSet template references one or more macros, you must create the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To create the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.  StackSets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// A unique identifier for this CreateStackSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another StackSet with the same name. You might retry CreateStackSet requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically.
        public let clientRequestToken: String?
        /// A description of the StackSet. You can use the description to identify the StackSet's purpose or other important information.
        public let description: String?
        /// The name of the IAM execution role to use to create the StackSet. If you do not specify an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the StackSet operation. Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their StackSets. Valid only if the permissions model is SELF_MANAGED.
        public let executionRoleName: String?
        /// Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.
        public let managedExecution: ManagedExecution?
        /// The input parameters for the StackSet template.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// Describes how the IAM roles required for StackSet operations are created. By default, SELF-MANAGED is specified.   With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions.   With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations.
        public let permissionModel: PermissionModels?
        /// The stack ID you are importing into a new StackSet. Specify the Amazon Resource Name (ARN) of the stack.
        public let stackId: String?
        /// The name to associate with the StackSet. The name must be unique in the Region where you create your StackSet.  A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters.
        public let stackSetName: String?
        /// The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported resources that are created in the stacks. A maximum number of 50 tags can be specified. If you specify tags as part of a CreateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entire CreateStackSet action fails with an access denied error, and the StackSet is not created.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.
        public let templateBody: String?
        /// The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. S3 static website URLs are not supported. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both.
        public let templateURL: String?

        @inlinable
        public init(administrationRoleARN: String? = nil, autoDeployment: AutoDeployment? = nil, callAs: CallAs? = nil, capabilities: [Capability]? = nil, clientRequestToken: String? = CreateStackSetInput.idempotencyToken(), description: String? = nil, executionRoleName: String? = nil, managedExecution: ManagedExecution? = nil, parameters: [Parameter]? = nil, permissionModel: PermissionModels? = nil, stackId: String? = nil, stackSetName: String? = nil, tags: [Tag]? = nil, templateBody: String? = nil, templateURL: String? = nil) {
            self.administrationRoleARN = administrationRoleARN
            self.autoDeployment = autoDeployment
            self.callAs = callAs
            self.capabilities = capabilities
            self.clientRequestToken = clientRequestToken
            self.description = description
            self.executionRoleName = executionRoleName
            self.managedExecution = managedExecution
            self.parameters = parameters
            self.permissionModel = permissionModel
            self.stackId = stackId
            self.stackSetName = stackSetName
            self.tags = tags
            self.templateBody = templateBody
            self.templateURL = templateURL
        }

        public func validate(name: String) throws {
            try self.validate(self.administrationRoleARN, name: "administrationRoleARN", parent: name, max: 2048)
            try self.validate(self.administrationRoleARN, name: "administrationRoleARN", parent: name, min: 20)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.description, name: "description", parent: name, max: 1024)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.executionRoleName, name: "executionRoleName", parent: name, max: 64)
            try self.validate(self.executionRoleName, name: "executionRoleName", parent: name, min: 1)
            try self.validate(self.executionRoleName, name: "executionRoleName", parent: name, pattern: "^[a-zA-Z_0-9+=,.@-]+$")
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case administrationRoleARN = "AdministrationRoleARN"
            case autoDeployment = "AutoDeployment"
            case callAs = "CallAs"
            case capabilities = "Capabilities"
            case clientRequestToken = "ClientRequestToken"
            case description = "Description"
            case executionRoleName = "ExecutionRoleName"
            case managedExecution = "ManagedExecution"
            case parameters = "Parameters"
            case permissionModel = "PermissionModel"
            case stackId = "StackId"
            case stackSetName = "StackSetName"
            case tags = "Tags"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
        }
    }

    public struct CreateStackSetOutput: AWSDecodableShape {
        /// The ID of the StackSet that you're creating.
        public let stackSetId: String?

        @inlinable
        public init(stackSetId: String? = nil) {
            self.stackSetId = stackSetId
        }

        private enum CodingKeys: String, CodingKey {
            case stackSetId = "StackSetId"
        }
    }

    public struct DeactivateOrganizationsAccessInput: AWSEncodableShape {
        public init() {}
    }

    public struct DeactivateOrganizationsAccessOutput: AWSDecodableShape {
        public init() {}
    }

    public struct DeactivateTypeInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) for the extension in this account and Region. Conditional: You must specify either Arn, or TypeName and Type.
        public let arn: String?
        /// The extension type. Conditional: You must specify either Arn, or TypeName and Type.
        public let type: ThirdPartyType?
        /// The type name of the extension in this account and Region. If you specified a type name alias when enabling the extension, use the type name alias. Conditional: You must specify either Arn, or TypeName and Type.
        public let typeName: String?

        @inlinable
        public init(arn: String? = nil, type: ThirdPartyType? = nil, typeName: String? = nil) {
            self.arn = arn
            self.type = type
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:[0-9]{12}:type/.+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case type = "Type"
            case typeName = "TypeName"
        }
    }

    public struct DeactivateTypeOutput: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteChangeSetInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of the change set that you want to delete.
        public let changeSetName: String?
        /// If you specified the name of a change set to delete, specify the stack name or Amazon Resource Name (ARN) that's associated with it.
        public let stackName: String?

        @inlinable
        public init(changeSetName: String? = nil, stackName: String? = nil) {
            self.changeSetName = changeSetName
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, max: 1600)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, min: 1)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*$")
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetName = "ChangeSetName"
            case stackName = "StackName"
        }
    }

    public struct DeleteChangeSetOutput: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteGeneratedTemplateInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of a generated template.
        public let generatedTemplateName: String?

        @inlinable
        public init(generatedTemplateName: String? = nil) {
            self.generatedTemplateName = generatedTemplateName
        }

        public func validate(name: String) throws {
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, max: 128)
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case generatedTemplateName = "GeneratedTemplateName"
        }
    }

    public struct DeleteStackInput: AWSEncodableShape {
        /// A unique identifier for this DeleteStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to delete a stack with the same name. You might retry DeleteStack requests to ensure that CloudFormation successfully received them. All events initiated by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
        public let clientRequestToken: String?
        /// Specifies the deletion mode for the stack. Possible values are:    STANDARD - Use the standard behavior. Specifying this value is the same as not specifying this parameter.    FORCE_DELETE_STACK - Delete the stack if it's stuck in a DELETE_FAILED state due to resource deletion failure.
        public let deletionMode: DeletionMode?
        /// For stacks in the DELETE_FAILED state, a list of resource logical IDs that are associated with the resources you want to retain. During deletion, CloudFormation deletes the stack but doesn't delete the retained resources. Retaining resources is useful when you can't delete a resource, such as a non-empty S3 bucket, but you want to delete the stack.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var retainResources: [String]?
        /// The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to delete the stack. CloudFormation uses the role's credentials to make calls on your behalf. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that's generated from your user credentials.
        public let roleARN: String?
        /// The name or the unique stack ID that's associated with the stack.
        public let stackName: String?

        @inlinable
        public init(clientRequestToken: String? = nil, deletionMode: DeletionMode? = nil, retainResources: [String]? = nil, roleARN: String? = nil, stackName: String? = nil) {
            self.clientRequestToken = clientRequestToken
            self.deletionMode = deletionMode
            self.retainResources = retainResources
            self.roleARN = roleARN
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.roleARN, name: "roleARN", parent: name, max: 2048)
            try self.validate(self.roleARN, name: "roleARN", parent: name, min: 20)
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case deletionMode = "DeletionMode"
            case retainResources = "RetainResources"
            case roleARN = "RoleARN"
            case stackName = "StackName"
        }
    }

    public struct DeleteStackInstancesInput: AWSEncodableShape {
        /// [Self-managed permissions] The account IDs of the Amazon Web Services accounts that you want to delete stack instances for. You can specify Accounts or DeploymentTargets, but not both.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var accounts: [String]?
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// [Service-managed permissions] The Organizations accounts from which to delete stack instances. You can specify Accounts or DeploymentTargets, but not both.
        public let deploymentTargets: DeploymentTargets?
        /// The unique identifier for this StackSet operation. If you don't specify an operation ID, the SDK generates one automatically. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You can retry StackSet operation requests to ensure that CloudFormation successfully received them. Repeating this StackSet operation with a new operation ID retries all stack instances whose status is OUTDATED.
        public let operationId: String?
        /// Preferences for how CloudFormation performs this StackSet operation.
        public let operationPreferences: StackSetOperationPreferences?
        /// The Amazon Web Services Regions where you want to delete StackSet instances.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regions: [String]?
        /// Removes the stack instances from the specified StackSet, but doesn't delete the stacks. You can't reassociate a retained stack or add an existing, saved stack to a new stack set. For more information, see StackSet operation options.
        public let retainStacks: Bool?
        /// The name or unique ID of the StackSet that you want to delete stack instances for.
        public let stackSetName: String?

        @inlinable
        public init(accounts: [String]? = nil, callAs: CallAs? = nil, deploymentTargets: DeploymentTargets? = nil, operationId: String? = DeleteStackInstancesInput.idempotencyToken(), operationPreferences: StackSetOperationPreferences? = nil, regions: [String]? = nil, retainStacks: Bool? = nil, stackSetName: String? = nil) {
            self.accounts = accounts
            self.callAs = callAs
            self.deploymentTargets = deploymentTargets
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.regions = regions
            self.retainStacks = retainStacks
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.accounts?.forEach {
                try validate($0, name: "accounts[]", parent: name, pattern: "^[0-9]{12}$")
            }
            try self.deploymentTargets?.validate(name: "\(name).deploymentTargets")
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.operationPreferences?.validate(name: "\(name).operationPreferences")
            try self.regions?.forEach {
                try validate($0, name: "regions[]", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case accounts = "Accounts"
            case callAs = "CallAs"
            case deploymentTargets = "DeploymentTargets"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case regions = "Regions"
            case retainStacks = "RetainStacks"
            case stackSetName = "StackSetName"
        }
    }

    public struct DeleteStackInstancesOutput: AWSDecodableShape {
        /// The unique identifier for this StackSet operation.
        public let operationId: String?

        @inlinable
        public init(operationId: String? = nil) {
            self.operationId = operationId
        }

        private enum CodingKeys: String, CodingKey {
            case operationId = "OperationId"
        }
    }

    public struct DeleteStackSetInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The name or unique ID of the StackSet that you're deleting. You can obtain this value by running ListStackSets.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.stackSetName = stackSetName
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case stackSetName = "StackSetName"
        }
    }

    public struct DeleteStackSetOutput: AWSDecodableShape {
        public init() {}
    }

    public struct DeploymentTargets: AWSEncodableShape & AWSDecodableShape {
        /// Refines which accounts will have stack operations performed on them by specifying how to use the Accounts and OrganizationalUnitIds properties together. The following values determine how CloudFormation selects target accounts:    INTERSECTION: Performs stack operations only on specific individual accounts within the selected OUs. Only accounts that are both specified in the Accounts property and belong to the specified OUs will be targeted.    DIFFERENCE: Performs stack operations on all accounts in the selected OUs except for specific accounts listed in the Accounts property. This enables you to exclude certain accounts within an OU, such as suspended accounts.    UNION: Performs stack operations on the specified OUs plus additional individual accounts listed in the Accounts property. This is the default value if AccountFilterType is not provided. This lets you target an entire OU and individual accounts from a different OU in one request. Note that UNION is not supported for CreateStackInstances operations.    NONE: Performs stack operations on all accounts in the specified organizational units (OUs).
        public let accountFilterType: AccountFilterType?
        /// The Amazon Web Services account IDs where you want to perform stack operations. How these accounts are used depends on the AccountFilterType property. If you have many account numbers, you can provide those accounts using the AccountsUrl property instead.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var accounts: [String]?
        /// The Amazon S3 URL path to a file that contains a list of Amazon Web Services account IDs. The file format must be either .csv or .txt, and the data can be comma-separated or new-line-separated. There is currently a 10MB limit for the data (approximately 800,000 accounts). This property serves the same purpose as Accounts but allows you to specify a large number of accounts.
        public let accountsUrl: String?
        /// The organization root ID or organizational unit (OU) IDs where you want to perform stack operations. CloudFormation will perform operations on accounts within these OUs and their child OUs.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var organizationalUnitIds: [String]?

        @inlinable
        public init(accountFilterType: AccountFilterType? = nil, accounts: [String]? = nil, accountsUrl: String? = nil, organizationalUnitIds: [String]? = nil) {
            self.accountFilterType = accountFilterType
            self.accounts = accounts
            self.accountsUrl = accountsUrl
            self.organizationalUnitIds = organizationalUnitIds
        }

        public func validate(name: String) throws {
            try self.accounts?.forEach {
                try validate($0, name: "accounts[]", parent: name, pattern: "^[0-9]{12}$")
            }
            try self.validate(self.accountsUrl, name: "accountsUrl", parent: name, max: 5120)
            try self.validate(self.accountsUrl, name: "accountsUrl", parent: name, min: 1)
            try self.validate(self.accountsUrl, name: "accountsUrl", parent: name, pattern: "^(s3://|http(s?)://).+$")
            try self.organizationalUnitIds?.forEach {
                try validate($0, name: "organizationalUnitIds[]", parent: name, pattern: "^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32})$")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case accountFilterType = "AccountFilterType"
            case accounts = "Accounts"
            case accountsUrl = "AccountsUrl"
            case organizationalUnitIds = "OrganizationalUnitIds"
        }
    }

    public struct DeregisterTypeInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let arn: String?
        /// The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let type: RegistryType?
        /// The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let typeName: String?
        /// The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.
        public let versionId: String?

        @inlinable
        public init(arn: String? = nil, type: RegistryType? = nil, typeName: String? = nil, versionId: String? = nil) {
            self.arn = arn
            self.type = type
            self.typeName = typeName
            self.versionId = versionId
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:[0-9]{12}:type/.+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
            try self.validate(self.versionId, name: "versionId", parent: name, max: 128)
            try self.validate(self.versionId, name: "versionId", parent: name, min: 1)
            try self.validate(self.versionId, name: "versionId", parent: name, pattern: "^[A-Za-z0-9-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case type = "Type"
            case typeName = "TypeName"
            case versionId = "VersionId"
        }
    }

    public struct DeregisterTypeOutput: AWSDecodableShape {
        public init() {}
    }

    public struct DescribeAccountLimitsInput: AWSEncodableShape {
        /// A string that identifies the next page of limits that you want to retrieve.
        public let nextToken: String?

        @inlinable
        public init(nextToken: String? = nil) {
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
        }
    }

    public struct DescribeAccountLimitsOutput: AWSDecodableShape {
        /// An account limit structure that contain a list of CloudFormation account limits and their values.
        @OptionalCustomCoding<StandardArrayCoder<AccountLimit>>
        public var accountLimits: [AccountLimit]?
        /// If the output exceeds 1 MB in size, a string that identifies the next page of limits. If no additional page exists, this value is null.
        public let nextToken: String?

        @inlinable
        public init(accountLimits: [AccountLimit]? = nil, nextToken: String? = nil) {
            self.accountLimits = accountLimits
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case accountLimits = "AccountLimits"
            case nextToken = "NextToken"
        }
    }

    public struct DescribeChangeSetHooksInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of the change set that you want to describe.
        public let changeSetName: String?
        /// If specified, lists only the Hooks related to the specified LogicalResourceId.
        public let logicalResourceId: String?
        /// A string, provided by the DescribeChangeSetHooks response output, that identifies the next page of information that you want to retrieve.
        public let nextToken: String?
        /// If you specified the name of a change set, specify the stack name or stack ID (ARN) of the change set you want to describe.
        public let stackName: String?

        @inlinable
        public init(changeSetName: String? = nil, logicalResourceId: String? = nil, nextToken: String? = nil, stackName: String? = nil) {
            self.changeSetName = changeSetName
            self.logicalResourceId = logicalResourceId
            self.nextToken = nextToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, max: 1600)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, min: 1)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*$")
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetName = "ChangeSetName"
            case logicalResourceId = "LogicalResourceId"
            case nextToken = "NextToken"
            case stackName = "StackName"
        }
    }

    public struct DescribeChangeSetHooksOutput: AWSDecodableShape {
        /// The change set identifier (stack ID).
        public let changeSetId: String?
        /// The change set name.
        public let changeSetName: String?
        /// List of Hook objects.
        @OptionalCustomCoding<StandardArrayCoder<ChangeSetHook>>
        public var hooks: [ChangeSetHook]?
        /// Pagination token, null or empty if no more results.
        public let nextToken: String?
        /// The stack identifier (stack ID).
        public let stackId: String?
        /// The stack name.
        public let stackName: String?
        /// Provides the status of the change set hook.
        public let status: ChangeSetHooksStatus?

        @inlinable
        public init(changeSetId: String? = nil, changeSetName: String? = nil, hooks: [ChangeSetHook]? = nil, nextToken: String? = nil, stackId: String? = nil, stackName: String? = nil, status: ChangeSetHooksStatus? = nil) {
            self.changeSetId = changeSetId
            self.changeSetName = changeSetName
            self.hooks = hooks
            self.nextToken = nextToken
            self.stackId = stackId
            self.stackName = stackName
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetId = "ChangeSetId"
            case changeSetName = "ChangeSetName"
            case hooks = "Hooks"
            case nextToken = "NextToken"
            case stackId = "StackId"
            case stackName = "StackName"
            case status = "Status"
        }
    }

    public struct DescribeChangeSetInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of the change set that you want to describe.
        public let changeSetName: String?
        /// If true, the returned changes include detailed changes in the property values.
        public let includePropertyValues: Bool?
        /// A string (provided by the DescribeChangeSet response output) that identifies the next page of information that you want to retrieve.
        public let nextToken: String?
        /// If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe.
        public let stackName: String?

        @inlinable
        public init(changeSetName: String? = nil, includePropertyValues: Bool? = nil, nextToken: String? = nil, stackName: String? = nil) {
            self.changeSetName = changeSetName
            self.includePropertyValues = includePropertyValues
            self.nextToken = nextToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, max: 1600)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, min: 1)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*$")
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetName = "ChangeSetName"
            case includePropertyValues = "IncludePropertyValues"
            case nextToken = "NextToken"
            case stackName = "StackName"
        }
    }

    public struct DescribeChangeSetOutput: AWSDecodableShape {
        /// If you execute the change set, the list of capabilities that were explicitly acknowledged when the change set was created.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// A list of Change structures that describes the resources CloudFormation changes if you execute the change set.
        @OptionalCustomCoding<StandardArrayCoder<Change>>
        public var changes: [Change]?
        /// The Amazon Resource Name (ARN) of the change set.
        public let changeSetId: String?
        /// The name of the change set.
        public let changeSetName: String?
        /// The start time when the change set was created, in UTC.
        public let creationTime: Date?
        /// Information about the change set.
        public let description: String?
        /// If the change set execution status is AVAILABLE, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an UNAVAILABLE state because CloudFormation is still creating it or in an OBSOLETE state because the stack was already updated.
        public let executionStatus: ExecutionStatus?
        /// Indicates if the change set imports resources that already exist.  This parameter can only import resources that have custom names in templates. To import resources that do not accept custom names, such as EC2 instances, use the resource import feature instead.
        public let importExistingResources: Bool?
        /// Verifies if IncludeNestedStacks is set to True.
        public let includeNestedStacks: Bool?
        /// If the output exceeds 1 MB, a string that identifies the next page of changes. If there is no additional page, this value is null.
        public let nextToken: String?
        /// The ARNs of the Amazon SNS topics that will be associated with the stack if you execute the change set.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var notificationARNs: [String]?
        /// Determines what action will be taken if stack creation fails. When this parameter is specified, the DisableRollback parameter to the ExecuteChangeSet API operation must not be specified. This must be one of these values:    DELETE - Deletes the change set if the stack creation fails. This is only valid when the ChangeSetType parameter is set to CREATE. If the deletion of the stack fails, the status of the stack is DELETE_FAILED.    DO_NOTHING - if the stack creation fails, do nothing. This is equivalent to specifying true for the DisableRollback parameter to the ExecuteChangeSet API operation.    ROLLBACK - if the stack creation fails, roll back the stack. This is equivalent to specifying false for the DisableRollback parameter to the ExecuteChangeSet API operation.
        public let onStackFailure: OnStackFailure?
        /// A list of Parameter structures that describes the input parameters and their values used to create the change set. For more information, see the Parameter data type.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// Specifies the change set ID of the parent change set in the current nested change set hierarchy.
        public let parentChangeSetId: String?
        /// The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
        public let rollbackConfiguration: RollbackConfiguration?
        /// Specifies the change set ID of the root change set in the current nested change set hierarchy.
        public let rootChangeSetId: String?
        /// The Amazon Resource Name (ARN) of the stack that's associated with the change set.
        public let stackId: String?
        /// The name of the stack that's associated with the change set.
        public let stackName: String?
        /// The current status of the change set, such as CREATE_PENDING, CREATE_COMPLETE, or FAILED.
        public let status: ChangeSetStatus?
        /// A description of the change set's status. For example, if your attempt to create a change set failed, CloudFormation shows the error message.
        public let statusReason: String?
        /// If you execute the change set, the tags that will be associated with the stack.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?

        @inlinable
        public init(capabilities: [Capability]? = nil, changes: [Change]? = nil, changeSetId: String? = nil, changeSetName: String? = nil, creationTime: Date? = nil, description: String? = nil, executionStatus: ExecutionStatus? = nil, importExistingResources: Bool? = nil, includeNestedStacks: Bool? = nil, nextToken: String? = nil, notificationARNs: [String]? = nil, onStackFailure: OnStackFailure? = nil, parameters: [Parameter]? = nil, parentChangeSetId: String? = nil, rollbackConfiguration: RollbackConfiguration? = nil, rootChangeSetId: String? = nil, stackId: String? = nil, stackName: String? = nil, status: ChangeSetStatus? = nil, statusReason: String? = nil, tags: [Tag]? = nil) {
            self.capabilities = capabilities
            self.changes = changes
            self.changeSetId = changeSetId
            self.changeSetName = changeSetName
            self.creationTime = creationTime
            self.description = description
            self.executionStatus = executionStatus
            self.importExistingResources = importExistingResources
            self.includeNestedStacks = includeNestedStacks
            self.nextToken = nextToken
            self.notificationARNs = notificationARNs
            self.onStackFailure = onStackFailure
            self.parameters = parameters
            self.parentChangeSetId = parentChangeSetId
            self.rollbackConfiguration = rollbackConfiguration
            self.rootChangeSetId = rootChangeSetId
            self.stackId = stackId
            self.stackName = stackName
            self.status = status
            self.statusReason = statusReason
            self.tags = tags
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case changes = "Changes"
            case changeSetId = "ChangeSetId"
            case changeSetName = "ChangeSetName"
            case creationTime = "CreationTime"
            case description = "Description"
            case executionStatus = "ExecutionStatus"
            case importExistingResources = "ImportExistingResources"
            case includeNestedStacks = "IncludeNestedStacks"
            case nextToken = "NextToken"
            case notificationARNs = "NotificationARNs"
            case onStackFailure = "OnStackFailure"
            case parameters = "Parameters"
            case parentChangeSetId = "ParentChangeSetId"
            case rollbackConfiguration = "RollbackConfiguration"
            case rootChangeSetId = "RootChangeSetId"
            case stackId = "StackId"
            case stackName = "StackName"
            case status = "Status"
            case statusReason = "StatusReason"
            case tags = "Tags"
        }
    }

    public struct DescribeGeneratedTemplateInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of a generated template.
        public let generatedTemplateName: String?

        @inlinable
        public init(generatedTemplateName: String? = nil) {
            self.generatedTemplateName = generatedTemplateName
        }

        public func validate(name: String) throws {
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, max: 128)
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case generatedTemplateName = "GeneratedTemplateName"
        }
    }

    public struct DescribeGeneratedTemplateOutput: AWSDecodableShape {
        /// The time the generated template was created.
        public let creationTime: Date?
        /// The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .
        public let generatedTemplateId: String?
        /// The name of the generated template.
        public let generatedTemplateName: String?
        /// The time the generated template was last updated.
        public let lastUpdatedTime: Date?
        /// An object describing the progress of the template generation.
        public let progress: TemplateProgress?
        /// A list of objects describing the details of the resources in the template generation.
        @OptionalCustomCoding<StandardArrayCoder<ResourceDetail>>
        public var resources: [ResourceDetail]?
        /// The stack ARN of the base stack if a base stack was provided when generating the template.
        public let stackId: String?
        /// The status of the template generation. Supported values are:    CreatePending - the creation of the template is pending.    CreateInProgress - the creation of the template is in progress.    DeletePending - the deletion of the template is pending.    DeleteInProgress - the deletion of the template is in progress.    UpdatePending - the update of the template is pending.    UpdateInProgress - the update of the template is in progress.    Failed - the template operation failed.    Complete - the template operation is complete.
        public let status: GeneratedTemplateStatus?
        /// The reason for the current template generation status. This will provide more details if a failure happened.
        public let statusReason: String?
        /// The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.
        public let templateConfiguration: TemplateConfiguration?
        /// The number of warnings generated for this template. The warnings are found in the details of each of the resources in the template.
        public let totalWarnings: Int?

        @inlinable
        public init(creationTime: Date? = nil, generatedTemplateId: String? = nil, generatedTemplateName: String? = nil, lastUpdatedTime: Date? = nil, progress: TemplateProgress? = nil, resources: [ResourceDetail]? = nil, stackId: String? = nil, status: GeneratedTemplateStatus? = nil, statusReason: String? = nil, templateConfiguration: TemplateConfiguration? = nil, totalWarnings: Int? = nil) {
            self.creationTime = creationTime
            self.generatedTemplateId = generatedTemplateId
            self.generatedTemplateName = generatedTemplateName
            self.lastUpdatedTime = lastUpdatedTime
            self.progress = progress
            self.resources = resources
            self.stackId = stackId
            self.status = status
            self.statusReason = statusReason
            self.templateConfiguration = templateConfiguration
            self.totalWarnings = totalWarnings
        }

        private enum CodingKeys: String, CodingKey {
            case creationTime = "CreationTime"
            case generatedTemplateId = "GeneratedTemplateId"
            case generatedTemplateName = "GeneratedTemplateName"
            case lastUpdatedTime = "LastUpdatedTime"
            case progress = "Progress"
            case resources = "Resources"
            case stackId = "StackId"
            case status = "Status"
            case statusReason = "StatusReason"
            case templateConfiguration = "TemplateConfiguration"
            case totalWarnings = "TotalWarnings"
        }
    }

    public struct DescribeOrganizationsAccessInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?

        @inlinable
        public init(callAs: CallAs? = nil) {
            self.callAs = callAs
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
        }
    }

    public struct DescribeOrganizationsAccessOutput: AWSDecodableShape {
        /// Presents the status of the OrganizationAccess.
        public let status: OrganizationStatus?

        @inlinable
        public init(status: OrganizationStatus? = nil) {
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case status = "Status"
        }
    }

    public struct DescribePublisherInput: AWSEncodableShape {
        /// The ID of the extension publisher. If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.
        public let publisherId: String?

        @inlinable
        public init(publisherId: String? = nil) {
            self.publisherId = publisherId
        }

        public func validate(name: String) throws {
            try self.validate(self.publisherId, name: "publisherId", parent: name, max: 40)
            try self.validate(self.publisherId, name: "publisherId", parent: name, min: 1)
            try self.validate(self.publisherId, name: "publisherId", parent: name, pattern: "^[0-9a-zA-Z]{12,40}$")
        }

        private enum CodingKeys: String, CodingKey {
            case publisherId = "PublisherId"
        }
    }

    public struct DescribePublisherOutput: AWSDecodableShape {
        /// The type of account used as the identity provider when registering this publisher with CloudFormation.
        public let identityProvider: IdentityProvider?
        /// The ID of the extension publisher.
        public let publisherId: String?
        /// The URL to the publisher's profile with the identity provider.
        public let publisherProfile: String?
        /// Whether the publisher is verified. Currently, all registered publishers are verified.
        public let publisherStatus: PublisherStatus?

        @inlinable
        public init(identityProvider: IdentityProvider? = nil, publisherId: String? = nil, publisherProfile: String? = nil, publisherStatus: PublisherStatus? = nil) {
            self.identityProvider = identityProvider
            self.publisherId = publisherId
            self.publisherProfile = publisherProfile
            self.publisherStatus = publisherStatus
        }

        private enum CodingKeys: String, CodingKey {
            case identityProvider = "IdentityProvider"
            case publisherId = "PublisherId"
            case publisherProfile = "PublisherProfile"
            case publisherStatus = "PublisherStatus"
        }
    }

    public struct DescribeResourceScanInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource scan.
        public let resourceScanId: String?

        @inlinable
        public init(resourceScanId: String? = nil) {
            self.resourceScanId = resourceScanId
        }

        private enum CodingKeys: String, CodingKey {
            case resourceScanId = "ResourceScanId"
        }
    }

    public struct DescribeResourceScanOutput: AWSDecodableShape {
        /// The time that the resource scan was finished.
        public let endTime: Date?
        /// The percentage of the resource scan that has been completed.
        public let percentageCompleted: Double?
        /// The Amazon Resource Name (ARN) of the resource scan. The format is arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. An example is arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 .
        public let resourceScanId: String?
        /// The number of resources that were read. This is only available for scans with a Status set to COMPLETE, EXPIRED, or FAILED.  This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException.
        public let resourcesRead: Int?
        /// The number of resources that were listed. This is only available for scans with a Status set to COMPLETE, EXPIRED, or FAILED .
        public let resourcesScanned: Int?
        /// The list of resource types for the specified scan. Resource types are only available for scans with a Status set to COMPLETE or FAILED .
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourceTypes: [String]?
        /// The scan filters that were used.
        @OptionalCustomCoding<StandardArrayCoder<ScanFilter>>
        public var scanFilters: [ScanFilter]?
        /// The time that the resource scan was started.
        public let startTime: Date?
        /// Status of the resource scan.    IN_PROGRESS    The resource scan is still in progress.    COMPLETE    The resource scan is complete.    EXPIRED    The resource scan has expired.    FAILED    The resource scan has failed.
        public let status: ResourceScanStatus?
        /// The reason for the resource scan status, providing more information if a failure happened.
        public let statusReason: String?

        @inlinable
        public init(endTime: Date? = nil, percentageCompleted: Double? = nil, resourceScanId: String? = nil, resourcesRead: Int? = nil, resourcesScanned: Int? = nil, resourceTypes: [String]? = nil, scanFilters: [ScanFilter]? = nil, startTime: Date? = nil, status: ResourceScanStatus? = nil, statusReason: String? = nil) {
            self.endTime = endTime
            self.percentageCompleted = percentageCompleted
            self.resourceScanId = resourceScanId
            self.resourcesRead = resourcesRead
            self.resourcesScanned = resourcesScanned
            self.resourceTypes = resourceTypes
            self.scanFilters = scanFilters
            self.startTime = startTime
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case endTime = "EndTime"
            case percentageCompleted = "PercentageCompleted"
            case resourceScanId = "ResourceScanId"
            case resourcesRead = "ResourcesRead"
            case resourcesScanned = "ResourcesScanned"
            case resourceTypes = "ResourceTypes"
            case scanFilters = "ScanFilters"
            case startTime = "StartTime"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct DescribeStackDriftDetectionStatusInput: AWSEncodableShape {
        /// The ID of the drift detection results of this operation. CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of drift results CloudFormation retains for any given stack, and for how long, may vary.
        public let stackDriftDetectionId: String?

        @inlinable
        public init(stackDriftDetectionId: String? = nil) {
            self.stackDriftDetectionId = stackDriftDetectionId
        }

        public func validate(name: String) throws {
            try self.validate(self.stackDriftDetectionId, name: "stackDriftDetectionId", parent: name, max: 36)
            try self.validate(self.stackDriftDetectionId, name: "stackDriftDetectionId", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case stackDriftDetectionId = "StackDriftDetectionId"
        }
    }

    public struct DescribeStackDriftDetectionStatusOutput: AWSDecodableShape {
        /// The status of the stack drift detection operation.    DETECTION_COMPLETE: The stack drift detection operation has successfully completed for all resources in the stack that support drift detection. (Resources that don't currently support stack detection remain unchecked.) If you specified logical resource IDs for CloudFormation to use as a filter for the stack drift detection operation, only the resources with those logical IDs are checked for drift.    DETECTION_FAILED: The stack drift detection operation has failed for at least one resource in the stack. Results will be available for resources on which CloudFormation successfully completed drift detection.    DETECTION_IN_PROGRESS: The stack drift detection operation is currently in progress.
        public let detectionStatus: StackDriftDetectionStatus?
        /// The reason the stack drift detection operation has its current status.
        public let detectionStatusReason: String?
        /// Total number of stack resources that have drifted. This is NULL until the drift detection operation reaches a status of DETECTION_COMPLETE. This value will be 0 for stacks whose drift status is IN_SYNC.
        public let driftedStackResourceCount: Int?
        /// The ID of the drift detection results of this operation. CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of reports CloudFormation retains for any given stack, and for how long, may vary.
        public let stackDriftDetectionId: String?
        /// Status of the stack's actual configuration compared to its expected configuration.    DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.    NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.    IN_SYNC: The stack's actual configuration matches its expected template configuration.    UNKNOWN: CloudFormation could not run drift detection for a resource in the stack. See the DetectionStatusReason for details.
        public let stackDriftStatus: StackDriftStatus?
        /// The ID of the stack.
        public let stackId: String?
        /// Time at which the stack drift detection operation was initiated.
        public let timestamp: Date?

        @inlinable
        public init(detectionStatus: StackDriftDetectionStatus? = nil, detectionStatusReason: String? = nil, driftedStackResourceCount: Int? = nil, stackDriftDetectionId: String? = nil, stackDriftStatus: StackDriftStatus? = nil, stackId: String? = nil, timestamp: Date? = nil) {
            self.detectionStatus = detectionStatus
            self.detectionStatusReason = detectionStatusReason
            self.driftedStackResourceCount = driftedStackResourceCount
            self.stackDriftDetectionId = stackDriftDetectionId
            self.stackDriftStatus = stackDriftStatus
            self.stackId = stackId
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case detectionStatus = "DetectionStatus"
            case detectionStatusReason = "DetectionStatusReason"
            case driftedStackResourceCount = "DriftedStackResourceCount"
            case stackDriftDetectionId = "StackDriftDetectionId"
            case stackDriftStatus = "StackDriftStatus"
            case stackId = "StackId"
            case timestamp = "Timestamp"
        }
    }

    public struct DescribeStackEventsInput: AWSEncodableShape {
        /// A string that identifies the next page of events that you want to retrieve.
        public let nextToken: String?
        /// The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
        public let stackName: String?

        @inlinable
        public init(nextToken: String? = nil, stackName: String? = nil) {
            self.nextToken = nextToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackName = "StackName"
        }
    }

    public struct DescribeStackEventsOutput: AWSDecodableShape {
        /// If the output exceeds 1 MB in size, a string that identifies the next page of events. If no additional page exists, this value is null.
        public let nextToken: String?
        /// A list of StackEvents structures.
        @OptionalCustomCoding<StandardArrayCoder<StackEvent>>
        public var stackEvents: [StackEvent]?

        @inlinable
        public init(nextToken: String? = nil, stackEvents: [StackEvent]? = nil) {
            self.nextToken = nextToken
            self.stackEvents = stackEvents
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackEvents = "StackEvents"
        }
    }

    public struct DescribeStackInstanceInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The ID of an Amazon Web Services account that's associated with this stack instance.
        public let stackInstanceAccount: String?
        /// The name of a Region that's associated with this stack instance.
        public let stackInstanceRegion: String?
        /// The name or the unique stack ID of the StackSet that you want to get stack instance information for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, stackInstanceAccount: String? = nil, stackInstanceRegion: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.stackInstanceAccount = stackInstanceAccount
            self.stackInstanceRegion = stackInstanceRegion
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.stackInstanceAccount, name: "stackInstanceAccount", parent: name, pattern: "^[0-9]{12}$")
            try self.validate(self.stackInstanceRegion, name: "stackInstanceRegion", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case stackInstanceAccount = "StackInstanceAccount"
            case stackInstanceRegion = "StackInstanceRegion"
            case stackSetName = "StackSetName"
        }
    }

    public struct DescribeStackInstanceOutput: AWSDecodableShape {
        /// The stack instance that matches the specified request parameters.
        public let stackInstance: StackInstance?

        @inlinable
        public init(stackInstance: StackInstance? = nil) {
            self.stackInstance = stackInstance
        }

        private enum CodingKeys: String, CodingKey {
            case stackInstance = "StackInstance"
        }
    }

    public struct DescribeStackRefactorInput: AWSEncodableShape {
        /// The ID associated with the stack refactor created from the CreateStackRefactor action.
        public let stackRefactorId: String?

        @inlinable
        public init(stackRefactorId: String? = nil) {
            self.stackRefactorId = stackRefactorId
        }

        private enum CodingKeys: String, CodingKey {
            case stackRefactorId = "StackRefactorId"
        }
    }

    public struct DescribeStackRefactorOutput: AWSDecodableShape {
        /// A description to help you identify the refactor.
        public let description: String?
        /// The stack refactor execution operation status that's provided after calling the ExecuteStackRefactor action.
        public let executionStatus: StackRefactorExecutionStatus?
        /// A detailed explanation for the stack refactor ExecutionStatus.
        public let executionStatusReason: String?
        /// The unique ID for each stack.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var stackIds: [String]?
        /// The ID associated with the stack refactor created from the CreateStackRefactor action.
        public let stackRefactorId: String?
        /// The stack refactor operation status that's provided after calling the CreateStackRefactor action.
        public let status: StackRefactorStatus?
        /// A detailed explanation for the stack refactor operation Status.
        public let statusReason: String?

        @inlinable
        public init(description: String? = nil, executionStatus: StackRefactorExecutionStatus? = nil, executionStatusReason: String? = nil, stackIds: [String]? = nil, stackRefactorId: String? = nil, status: StackRefactorStatus? = nil, statusReason: String? = nil) {
            self.description = description
            self.executionStatus = executionStatus
            self.executionStatusReason = executionStatusReason
            self.stackIds = stackIds
            self.stackRefactorId = stackRefactorId
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case executionStatus = "ExecutionStatus"
            case executionStatusReason = "ExecutionStatusReason"
            case stackIds = "StackIds"
            case stackRefactorId = "StackRefactorId"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct DescribeStackResourceDriftsInput: AWSEncodableShape {
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// A string that identifies the next page of stack resource drift results.
        public let nextToken: String?
        /// The name of the stack for which you want drift information.
        public let stackName: String?
        /// The resource drift status values to use as filters for the resource drift results returned.    DELETED: The resource differs from its expected template configuration in that the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected template values.    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation doesn't currently return this value.    UNKNOWN: CloudFormation could not run drift detection for the resource.
        @OptionalCustomCoding<StandardArrayCoder<StackResourceDriftStatus>>
        public var stackResourceDriftStatusFilters: [StackResourceDriftStatus]?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, stackName: String? = nil, stackResourceDriftStatusFilters: [StackResourceDriftStatus]? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.stackName = stackName
            self.stackResourceDriftStatusFilters = stackResourceDriftStatusFilters
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
            try self.validate(self.stackResourceDriftStatusFilters, name: "stackResourceDriftStatusFilters", parent: name, max: 4)
            try self.validate(self.stackResourceDriftStatusFilters, name: "stackResourceDriftStatusFilters", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case stackName = "StackName"
            case stackResourceDriftStatusFilters = "StackResourceDriftStatusFilters"
        }
    }

    public struct DescribeStackResourceDriftsOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call DescribeStackResourceDrifts again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// Drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where CloudFormation detects drift. For a given stack, there will be one StackResourceDrift for each stack resource that has been checked for drift. Resources that haven't yet been checked for drift aren't included. Resources that do not currently support drift detection aren't checked, and so not included. For a list of resources that support drift detection, see Resource type support for imports and drift detection.
        @OptionalCustomCoding<StandardArrayCoder<StackResourceDrift>>
        public var stackResourceDrifts: [StackResourceDrift]?

        @inlinable
        public init(nextToken: String? = nil, stackResourceDrifts: [StackResourceDrift]? = nil) {
            self.nextToken = nextToken
            self.stackResourceDrifts = stackResourceDrifts
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackResourceDrifts = "StackResourceDrifts"
        }
    }

    public struct DescribeStackResourceInput: AWSEncodableShape {
        /// The logical name of the resource as specified in the template.
        public let logicalResourceId: String?
        /// The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
        public let stackName: String?

        @inlinable
        public init(logicalResourceId: String? = nil, stackName: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.stackName = stackName
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case stackName = "StackName"
        }
    }

    public struct DescribeStackResourceOutput: AWSDecodableShape {
        /// A StackResourceDetail structure that contains the description of the specified resource in the specified stack.
        public let stackResourceDetail: StackResourceDetail?

        @inlinable
        public init(stackResourceDetail: StackResourceDetail? = nil) {
            self.stackResourceDetail = stackResourceDetail
        }

        private enum CodingKeys: String, CodingKey {
            case stackResourceDetail = "StackResourceDetail"
        }
    }

    public struct DescribeStackResourcesInput: AWSEncodableShape {
        /// The logical name of the resource as specified in the template.
        public let logicalResourceId: String?
        /// The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation. For example, for an Amazon Elastic Compute Cloud (EC2) instance, PhysicalResourceId corresponds to the InstanceId. You can pass the EC2 InstanceId to DescribeStackResources to find which stack the instance belongs to and what other resources are part of the stack. Required: Conditional. If you don't specify PhysicalResourceId, you must specify StackName.
        public let physicalResourceId: String?
        /// The name or the unique stack ID that is associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.   Required: Conditional. If you don't specify StackName, you must specify PhysicalResourceId.
        public let stackName: String?

        @inlinable
        public init(logicalResourceId: String? = nil, physicalResourceId: String? = nil, stackName: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.physicalResourceId = physicalResourceId
            self.stackName = stackName
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case physicalResourceId = "PhysicalResourceId"
            case stackName = "StackName"
        }
    }

    public struct DescribeStackResourcesOutput: AWSDecodableShape {
        /// A list of StackResource structures.
        @OptionalCustomCoding<StandardArrayCoder<StackResource>>
        public var stackResources: [StackResource]?

        @inlinable
        public init(stackResources: [StackResource]? = nil) {
            self.stackResources = stackResources
        }

        private enum CodingKeys: String, CodingKey {
            case stackResources = "StackResources"
        }
    }

    public struct DescribeStackSetInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The name or unique ID of the StackSet whose description you want.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.stackSetName = stackSetName
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case stackSetName = "StackSetName"
        }
    }

    public struct DescribeStackSetOperationInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The unique ID of the StackSet operation.
        public let operationId: String?
        /// The name or the unique stack ID of the StackSet for the stack operation.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, operationId: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.operationId = operationId
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case operationId = "OperationId"
            case stackSetName = "StackSetName"
        }
    }

    public struct DescribeStackSetOperationOutput: AWSDecodableShape {
        /// The specified StackSet operation.
        public let stackSetOperation: StackSetOperation?

        @inlinable
        public init(stackSetOperation: StackSetOperation? = nil) {
            self.stackSetOperation = stackSetOperation
        }

        private enum CodingKeys: String, CodingKey {
            case stackSetOperation = "StackSetOperation"
        }
    }

    public struct DescribeStackSetOutput: AWSDecodableShape {
        /// The specified StackSet.
        public let stackSet: StackSet?

        @inlinable
        public init(stackSet: StackSet? = nil) {
            self.stackSet = stackSet
        }

        private enum CodingKeys: String, CodingKey {
            case stackSet = "StackSet"
        }
    }

    public struct DescribeStacksInput: AWSEncodableShape {
        /// A string that identifies the next page of stacks that you want to retrieve.
        public let nextToken: String?
        ///  If you don't pass a parameter to StackName, the API returns a response that describes all resources in the account, which can impact performance. This requires ListStacks and DescribeStacks permissions. Consider using the ListStacks API if you're not passing a parameter to StackName. The IAM policy below can be added to IAM policies when you want to limit resource-level permissions and avoid returning a response when no parameter is sent in the request: { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": "cloudformation:DescribeStacks", "NotResource": "arn:aws:cloudformation:*:*:stack/*/*" }] }  The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
        public let stackName: String?

        @inlinable
        public init(nextToken: String? = nil, stackName: String? = nil) {
            self.nextToken = nextToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackName = "StackName"
        }
    }

    public struct DescribeStacksOutput: AWSDecodableShape {
        /// If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page exists, this value is null.
        public let nextToken: String?
        /// A list of stack structures.
        @OptionalCustomCoding<StandardArrayCoder<Stack>>
        public var stacks: [Stack]?

        @inlinable
        public init(nextToken: String? = nil, stacks: [Stack]? = nil) {
            self.nextToken = nextToken
            self.stacks = stacks
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stacks = "Stacks"
        }
    }

    public struct DescribeTypeInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let arn: String?
        /// The version number of a public third-party extension.
        public let publicVersionNumber: String?
        /// The publisher ID of the extension publisher. Extensions provided by Amazon Web Services are not assigned a publisher ID.
        public let publisherId: String?
        /// The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let type: RegistryType?
        /// The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let typeName: String?
        /// The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered. If you specify a VersionId, DescribeType returns information about that specific extension version. Otherwise, it returns information about the default extension version.
        public let versionId: String?

        @inlinable
        public init(arn: String? = nil, publicVersionNumber: String? = nil, publisherId: String? = nil, type: RegistryType? = nil, typeName: String? = nil, versionId: String? = nil) {
            self.arn = arn
            self.publicVersionNumber = publicVersionNumber
            self.publisherId = publisherId
            self.type = type
            self.typeName = typeName
            self.versionId = versionId
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+$")
            try self.validate(self.publicVersionNumber, name: "publicVersionNumber", parent: name, min: 5)
            try self.validate(self.publicVersionNumber, name: "publicVersionNumber", parent: name, pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(.*)$")
            try self.validate(self.publisherId, name: "publisherId", parent: name, max: 40)
            try self.validate(self.publisherId, name: "publisherId", parent: name, min: 1)
            try self.validate(self.publisherId, name: "publisherId", parent: name, pattern: "^[0-9a-zA-Z]{12,40}$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
            try self.validate(self.versionId, name: "versionId", parent: name, max: 128)
            try self.validate(self.versionId, name: "versionId", parent: name, min: 1)
            try self.validate(self.versionId, name: "versionId", parent: name, pattern: "^[A-Za-z0-9-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case publicVersionNumber = "PublicVersionNumber"
            case publisherId = "PublisherId"
            case type = "Type"
            case typeName = "TypeName"
            case versionId = "VersionId"
        }
    }

    public struct DescribeTypeOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the extension.
        public let arn: String?
        /// Whether CloudFormation automatically updates the extension in this account and Region when a new minor version is published by the extension publisher. Major versions released by the publisher must be manually updated. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
        public let autoUpdate: Bool?
        /// A JSON string that represent the current configuration data for the extension in this account and Region. To set the configuration data for an extension, use SetTypeConfiguration.
        public let configurationSchema: String?
        /// The ID of the default version of the extension. The default version is used when the extension version isn't specified. This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon Web Services and published by third parties, CloudFormation returns null. For more information, see RegisterType. To set the default version of an extension, use SetTypeDefaultVersion.
        public let defaultVersionId: String?
        /// The deprecation status of the extension version. Valid values include:    LIVE: The extension is activated or registered and can be used in CloudFormation operations, dependent on its provisioning behavior and visibility scope.    DEPRECATED: The extension has been deactivated or deregistered and can no longer be used in CloudFormation operations.   For public third-party extensions, CloudFormation returns null.
        public let deprecatedStatus: DeprecatedStatus?
        /// The description of the extension.
        public let description: String?
        /// The URL of a page providing detailed documentation for this extension.
        public let documentationUrl: String?
        /// The Amazon Resource Name (ARN) of the IAM execution role used to register the extension. This applies only to private extensions you have registered in your account. For more information, see RegisterType. If the registered extension calls any Amazon Web Services APIs, you must create an  IAM execution role that includes the necessary permissions to call those Amazon Web Services APIs, and provision that execution role in your account. CloudFormation then assumes that execution role to provide your extension with the appropriate credentials.
        public let executionRoleArn: String?
        /// Whether the extension is activated in the account and Region. This only applies to public third-party extensions. For all other extensions, CloudFormation returns null.
        public let isActivated: Bool?
        /// Whether the specified extension version is set as the default version. This applies only to private extensions you have registered in your account, and extensions published by Amazon Web Services. For public third-party extensions, whether they are activated in your account, CloudFormation returns null.
        public let isDefaultVersion: Bool?
        /// When the specified extension version was registered. This applies only to:   Private extensions you have registered in your account. For more information, see RegisterType.   Public extensions you have activated in your account with auto-update specified. For more information, see ActivateType.
        public let lastUpdated: Date?
        /// The latest version of a public extension that is available for use. This only applies if you specify a public extension, and you don't specify a version. For all other requests, CloudFormation returns null.
        public let latestPublicVersion: String?
        /// Contains logging configuration information for private extensions. This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon Web Services and published by third parties, CloudFormation returns null. For more information, see RegisterType.
        public let loggingConfig: LoggingConfig?
        /// For public extensions that have been activated for this account and Region, the Amazon Resource Name (ARN) of the public extension.
        public let originalTypeArn: String?
        /// For public extensions that have been activated for this account and Region, the type name of the public extension. If you specified a TypeNameAlias when enabling the extension in this account and Region, CloudFormation treats that alias as the extension's type name within the account and Region, not the type name of the public extension. For more information, see Use aliases to refer to extensions in the CloudFormation User Guide.
        public let originalTypeName: String?
        /// For resource type extensions, the provisioning behavior of the resource type. CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted. Valid values include:    FULLY_MUTABLE: The resource type includes an update handler to process updates to the type during stack update operations.    IMMUTABLE: The resource type doesn't include an update handler, so the type can't be updated and must instead be replaced during stack update operations.    NON_PROVISIONABLE: The resource type doesn't include all the following handlers, and therefore can't actually be provisioned.   create   read   delete
        public let provisioningType: ProvisioningType?
        /// The version number of a public third-party extension. This applies only if you specify a public extension you have activated in your account, or specify a public extension without specifying a version. For all other extensions, CloudFormation returns null.
        public let publicVersionNumber: String?
        /// The publisher ID of the extension publisher. This applies only to public third-party extensions. For private registered extensions, and extensions provided by Amazon Web Services, CloudFormation returns null.
        public let publisherId: String?
        /// For extensions that are modules, the public third-party extensions that must be activated in your account in order for the module itself to be activated.
        @OptionalCustomCoding<StandardArrayCoder<RequiredActivatedType>>
        public var requiredActivatedTypes: [RequiredActivatedType]?
        /// The schema that defines the extension. For more information, see Resource type schema in the CloudFormation Command Line Interface (CLI) User Guide and the CloudFormation Hooks User Guide.
        public let schema: String?
        /// The URL of the source code for the extension.
        public let sourceUrl: String?
        /// When the specified private extension version was registered or activated in your account.
        public let timeCreated: Date?
        /// The kind of extension.
        public let type: RegistryType?
        /// The name of the extension. If the extension is a public third-party type you have activated with a type name alias, CloudFormation returns the type name alias. For more information, see ActivateType.
        public let typeName: String?
        /// The contract test status of the registered extension version. To return the extension test status of a specific extension version, you must specify VersionId. This applies only to registered private extension versions. CloudFormation doesn't return this information for public extensions, whether they are activated in your account.    PASSED: The extension has passed all its contract tests. An extension must have a test status of PASSED before it can be published. For more information, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide.    FAILED: The extension has failed one or more contract tests.    IN_PROGRESS: Contract tests are currently being performed on the extension.    NOT_TESTED: Contract tests haven't been performed on the extension.
        public let typeTestsStatus: TypeTestsStatus?
        /// The description of the test status. To return the extension test status of a specific extension version, you must specify VersionId. This applies only to registered private extension versions. CloudFormation doesn't return this information for public extensions, whether they are activated in your account.
        public let typeTestsStatusDescription: String?
        /// The scope at which the extension is visible and usable in CloudFormation operations. Valid values include:    PRIVATE: The extension is only visible and usable within the account in which it is registered. CloudFormation marks any extensions you register as PRIVATE.    PUBLIC: The extension is publicly visible and usable within any Amazon Web Services account.
        public let visibility: Visibility?

        @inlinable
        public init(arn: String? = nil, autoUpdate: Bool? = nil, configurationSchema: String? = nil, defaultVersionId: String? = nil, deprecatedStatus: DeprecatedStatus? = nil, description: String? = nil, documentationUrl: String? = nil, executionRoleArn: String? = nil, isActivated: Bool? = nil, isDefaultVersion: Bool? = nil, lastUpdated: Date? = nil, latestPublicVersion: String? = nil, loggingConfig: LoggingConfig? = nil, originalTypeArn: String? = nil, originalTypeName: String? = nil, provisioningType: ProvisioningType? = nil, publicVersionNumber: String? = nil, publisherId: String? = nil, requiredActivatedTypes: [RequiredActivatedType]? = nil, schema: String? = nil, sourceUrl: String? = nil, timeCreated: Date? = nil, type: RegistryType? = nil, typeName: String? = nil, typeTestsStatus: TypeTestsStatus? = nil, typeTestsStatusDescription: String? = nil, visibility: Visibility? = nil) {
            self.arn = arn
            self.autoUpdate = autoUpdate
            self.configurationSchema = configurationSchema
            self.defaultVersionId = defaultVersionId
            self.deprecatedStatus = deprecatedStatus
            self.description = description
            self.documentationUrl = documentationUrl
            self.executionRoleArn = executionRoleArn
            self.isActivated = isActivated
            self.isDefaultVersion = isDefaultVersion
            self.lastUpdated = lastUpdated
            self.latestPublicVersion = latestPublicVersion
            self.loggingConfig = loggingConfig
            self.originalTypeArn = originalTypeArn
            self.originalTypeName = originalTypeName
            self.provisioningType = provisioningType
            self.publicVersionNumber = publicVersionNumber
            self.publisherId = publisherId
            self.requiredActivatedTypes = requiredActivatedTypes
            self.schema = schema
            self.sourceUrl = sourceUrl
            self.timeCreated = timeCreated
            self.type = type
            self.typeName = typeName
            self.typeTestsStatus = typeTestsStatus
            self.typeTestsStatusDescription = typeTestsStatusDescription
            self.visibility = visibility
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case autoUpdate = "AutoUpdate"
            case configurationSchema = "ConfigurationSchema"
            case defaultVersionId = "DefaultVersionId"
            case deprecatedStatus = "DeprecatedStatus"
            case description = "Description"
            case documentationUrl = "DocumentationUrl"
            case executionRoleArn = "ExecutionRoleArn"
            case isActivated = "IsActivated"
            case isDefaultVersion = "IsDefaultVersion"
            case lastUpdated = "LastUpdated"
            case latestPublicVersion = "LatestPublicVersion"
            case loggingConfig = "LoggingConfig"
            case originalTypeArn = "OriginalTypeArn"
            case originalTypeName = "OriginalTypeName"
            case provisioningType = "ProvisioningType"
            case publicVersionNumber = "PublicVersionNumber"
            case publisherId = "PublisherId"
            case requiredActivatedTypes = "RequiredActivatedTypes"
            case schema = "Schema"
            case sourceUrl = "SourceUrl"
            case timeCreated = "TimeCreated"
            case type = "Type"
            case typeName = "TypeName"
            case typeTestsStatus = "TypeTestsStatus"
            case typeTestsStatusDescription = "TypeTestsStatusDescription"
            case visibility = "Visibility"
        }
    }

    public struct DescribeTypeRegistrationInput: AWSEncodableShape {
        /// The identifier for this registration request. This registration token is generated by CloudFormation when you initiate a registration request using RegisterType.
        public let registrationToken: String?

        @inlinable
        public init(registrationToken: String? = nil) {
            self.registrationToken = registrationToken
        }

        public func validate(name: String) throws {
            try self.validate(self.registrationToken, name: "registrationToken", parent: name, max: 128)
            try self.validate(self.registrationToken, name: "registrationToken", parent: name, min: 1)
            try self.validate(self.registrationToken, name: "registrationToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case registrationToken = "RegistrationToken"
        }
    }

    public struct DescribeTypeRegistrationOutput: AWSDecodableShape {
        /// The description of the extension registration request.
        public let description: String?
        /// The current status of the extension registration request.
        public let progressStatus: RegistrationStatus?
        /// The Amazon Resource Name (ARN) of the extension being registered. For registration requests with a ProgressStatus of other than COMPLETE, this will be null.
        public let typeArn: String?
        /// The Amazon Resource Name (ARN) of this specific version of the extension being registered. For registration requests with a ProgressStatus of other than COMPLETE, this will be null.
        public let typeVersionArn: String?

        @inlinable
        public init(description: String? = nil, progressStatus: RegistrationStatus? = nil, typeArn: String? = nil, typeVersionArn: String? = nil) {
            self.description = description
            self.progressStatus = progressStatus
            self.typeArn = typeArn
            self.typeVersionArn = typeVersionArn
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case progressStatus = "ProgressStatus"
            case typeArn = "TypeArn"
            case typeVersionArn = "TypeVersionArn"
        }
    }

    public struct DetectStackDriftInput: AWSEncodableShape {
        /// The logical names of any resources you want to use as filters.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var logicalResourceIds: [String]?
        /// The name of the stack for which you want to detect drift.
        public let stackName: String?

        @inlinable
        public init(logicalResourceIds: [String]? = nil, stackName: String? = nil) {
            self.logicalResourceIds = logicalResourceIds
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.logicalResourceIds, name: "logicalResourceIds", parent: name, max: 200)
            try self.validate(self.logicalResourceIds, name: "logicalResourceIds", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceIds = "LogicalResourceIds"
            case stackName = "StackName"
        }
    }

    public struct DetectStackDriftOutput: AWSDecodableShape {
        /// The ID of the drift detection results of this operation. CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of drift results CloudFormation retains for any given stack, and for how long, may vary.
        public let stackDriftDetectionId: String?

        @inlinable
        public init(stackDriftDetectionId: String? = nil) {
            self.stackDriftDetectionId = stackDriftDetectionId
        }

        private enum CodingKeys: String, CodingKey {
            case stackDriftDetectionId = "StackDriftDetectionId"
        }
    }

    public struct DetectStackResourceDriftInput: AWSEncodableShape {
        /// The logical name of the resource for which to return drift information.
        public let logicalResourceId: String?
        /// The name of the stack to which the resource belongs.
        public let stackName: String?

        @inlinable
        public init(logicalResourceId: String? = nil, stackName: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case stackName = "StackName"
        }
    }

    public struct DetectStackResourceDriftOutput: AWSDecodableShape {
        /// Information about whether the resource's actual configuration has drifted from its expected template configuration, including actual and expected property values and any differences detected.
        public let stackResourceDrift: StackResourceDrift?

        @inlinable
        public init(stackResourceDrift: StackResourceDrift? = nil) {
            self.stackResourceDrift = stackResourceDrift
        }

        private enum CodingKeys: String, CodingKey {
            case stackResourceDrift = "StackResourceDrift"
        }
    }

    public struct DetectStackSetDriftInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        ///  The ID of the StackSet operation.
        public let operationId: String?
        /// The user-specified preferences for how CloudFormation performs a StackSet operation. For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
        public let operationPreferences: StackSetOperationPreferences?
        /// The name of the StackSet on which to perform the drift detection operation.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, operationId: String? = DetectStackSetDriftInput.idempotencyToken(), operationPreferences: StackSetOperationPreferences? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.operationPreferences?.validate(name: "\(name).operationPreferences")
            try self.validate(self.stackSetName, name: "stackSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*(?::[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})?$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case stackSetName = "StackSetName"
        }
    }

    public struct DetectStackSetDriftOutput: AWSDecodableShape {
        /// The ID of the drift detection StackSet operation. You can use this operation ID with DescribeStackSetOperation to monitor the progress of the drift detection operation.
        public let operationId: String?

        @inlinable
        public init(operationId: String? = nil) {
            self.operationId = operationId
        }

        private enum CodingKeys: String, CodingKey {
            case operationId = "OperationId"
        }
    }

    public struct EstimateTemplateCostInput: AWSEncodableShape {
        /// A list of Parameter structures that specify input parameters.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.
        public let templateBody: String?
        /// The URL of a file that contains the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
        public let templateURL: String?

        @inlinable
        public init(parameters: [Parameter]? = nil, templateBody: String? = nil, templateURL: String? = nil) {
            self.parameters = parameters
            self.templateBody = templateBody
            self.templateURL = templateURL
        }

        public func validate(name: String) throws {
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case parameters = "Parameters"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
        }
    }

    public struct EstimateTemplateCostOutput: AWSDecodableShape {
        /// An Amazon Web Services Simple Monthly Calculator URL with a query string that describes the resources required to run the template.
        public let url: String?

        @inlinable
        public init(url: String? = nil) {
            self.url = url
        }

        private enum CodingKeys: String, CodingKey {
            case url = "Url"
        }
    }

    public struct ExecuteChangeSetInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of the change set that you want use to update the specified stack.
        public let changeSetName: String?
        /// A unique identifier for this ExecuteChangeSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to execute a change set to update a stack with the same name. You might retry ExecuteChangeSet requests to ensure that CloudFormation successfully received them.
        public let clientRequestToken: String?
        /// Preserves the state of previously provisioned resources when an operation fails. This parameter can't be specified when the OnStackFailure parameter to the CreateChangeSet API operation was specified.    True - if the stack creation fails, do nothing. This is equivalent to specifying DO_NOTHING for the OnStackFailure parameter to the CreateChangeSet API operation.    False - if the stack creation fails, roll back the stack. This is equivalent to specifying ROLLBACK for the OnStackFailure parameter to the CreateChangeSet API operation.   Default: True
        public let disableRollback: Bool?
        /// When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
        public let retainExceptOnCreate: Bool?
        /// If you specified the name of a change set, specify the stack name or Amazon Resource Name (ARN) that's associated with the change set you want to execute.
        public let stackName: String?

        @inlinable
        public init(changeSetName: String? = nil, clientRequestToken: String? = nil, disableRollback: Bool? = nil, retainExceptOnCreate: Bool? = nil, stackName: String? = nil) {
            self.changeSetName = changeSetName
            self.clientRequestToken = clientRequestToken
            self.disableRollback = disableRollback
            self.retainExceptOnCreate = retainExceptOnCreate
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, max: 1600)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, min: 1)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*$")
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetName = "ChangeSetName"
            case clientRequestToken = "ClientRequestToken"
            case disableRollback = "DisableRollback"
            case retainExceptOnCreate = "RetainExceptOnCreate"
            case stackName = "StackName"
        }
    }

    public struct ExecuteChangeSetOutput: AWSDecodableShape {
        public init() {}
    }

    public struct ExecuteStackRefactorInput: AWSEncodableShape {
        /// The ID associated with the stack refactor created from the CreateStackRefactor action.
        public let stackRefactorId: String?

        @inlinable
        public init(stackRefactorId: String? = nil) {
            self.stackRefactorId = stackRefactorId
        }

        private enum CodingKeys: String, CodingKey {
            case stackRefactorId = "StackRefactorId"
        }
    }

    public struct Export: AWSDecodableShape {
        /// The stack that contains the exported output name and value.
        public let exportingStackId: String?
        /// The name of exported output value. Use this name and the Fn::ImportValue function to import the associated value into other stacks. The name is defined in the Export field in the associated stack's Outputs section.
        public let name: String?
        /// The value of the exported output, such as a resource physical ID. This value is defined in the Export field in the associated stack's Outputs section.
        public let value: String?

        @inlinable
        public init(exportingStackId: String? = nil, name: String? = nil, value: String? = nil) {
            self.exportingStackId = exportingStackId
            self.name = name
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case exportingStackId = "ExportingStackId"
            case name = "Name"
            case value = "Value"
        }
    }

    public struct GetGeneratedTemplateInput: AWSEncodableShape {
        /// The language to use to retrieve for the generated template. Supported values are:    JSON     YAML
        public let format: TemplateFormat?
        /// The name or Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .
        public let generatedTemplateName: String?

        @inlinable
        public init(format: TemplateFormat? = nil, generatedTemplateName: String? = nil) {
            self.format = format
            self.generatedTemplateName = generatedTemplateName
        }

        public func validate(name: String) throws {
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, max: 128)
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case format = "Format"
            case generatedTemplateName = "GeneratedTemplateName"
        }
    }

    public struct GetGeneratedTemplateOutput: AWSDecodableShape {
        /// The status of the template generation. Supported values are:    CreatePending - the creation of the template is pending.    CreateInProgress - the creation of the template is in progress.    DeletePending - the deletion of the template is pending.    DeleteInProgress - the deletion of the template is in progress.    UpdatePending - the update of the template is pending.    UpdateInProgress - the update of the template is in progress.    Failed - the template operation failed.    Complete - the template operation is complete.
        public let status: GeneratedTemplateStatus?
        /// The template body of the generated template, in the language specified by the Language parameter.
        public let templateBody: String?

        @inlinable
        public init(status: GeneratedTemplateStatus? = nil, templateBody: String? = nil) {
            self.status = status
            self.templateBody = templateBody
        }

        private enum CodingKeys: String, CodingKey {
            case status = "Status"
            case templateBody = "TemplateBody"
        }
    }

    public struct GetStackPolicyInput: AWSEncodableShape {
        /// The name or unique stack ID that's associated with the stack whose policy you want to get.
        public let stackName: String?

        @inlinable
        public init(stackName: String? = nil) {
            self.stackName = stackName
        }

        private enum CodingKeys: String, CodingKey {
            case stackName = "StackName"
        }
    }

    public struct GetStackPolicyOutput: AWSDecodableShape {
        /// Structure that contains the stack policy body. (For more information, see Prevent updates to stack resources in the CloudFormation User Guide.)
        public let stackPolicyBody: String?

        @inlinable
        public init(stackPolicyBody: String? = nil) {
            self.stackPolicyBody = stackPolicyBody
        }

        private enum CodingKeys: String, CodingKey {
            case stackPolicyBody = "StackPolicyBody"
        }
    }

    public struct GetTemplateInput: AWSEncodableShape {
        /// The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the StackName.
        public let changeSetName: String?
        /// The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
        public let stackName: String?
        /// For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify Original. To get the template after CloudFormation has processed all transforms, specify Processed. If the template doesn't include transforms, Original and Processed return the same template. By default, CloudFormation specifies Processed.
        public let templateStage: TemplateStage?

        @inlinable
        public init(changeSetName: String? = nil, stackName: String? = nil, templateStage: TemplateStage? = nil) {
            self.changeSetName = changeSetName
            self.stackName = stackName
            self.templateStage = templateStage
        }

        public func validate(name: String) throws {
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, max: 1600)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, min: 1)
            try self.validate(self.changeSetName, name: "changeSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case changeSetName = "ChangeSetName"
            case stackName = "StackName"
            case templateStage = "TemplateStage"
        }
    }

    public struct GetTemplateOutput: AWSDecodableShape {
        /// The stage of the template that you can retrieve. For stacks, the Original and Processed templates are always available. For change sets, the Original template is always available. After CloudFormation finishes creating the change set, the Processed template becomes available.
        @OptionalCustomCoding<StandardArrayCoder<TemplateStage>>
        public var stagesAvailable: [TemplateStage]?
        /// Structure that contains the template body. CloudFormation returns the same template that was used when the stack was created.
        public let templateBody: String?

        @inlinable
        public init(stagesAvailable: [TemplateStage]? = nil, templateBody: String? = nil) {
            self.stagesAvailable = stagesAvailable
            self.templateBody = templateBody
        }

        private enum CodingKeys: String, CodingKey {
            case stagesAvailable = "StagesAvailable"
            case templateBody = "TemplateBody"
        }
    }

    public struct GetTemplateSummaryInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The name or the stack ID that's associated with the stack, which aren't always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
        public let stackName: String?
        /// The name or unique ID of the StackSet from which the stack was created. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
        public let stackSetName: String?
        /// Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
        public let templateBody: String?
        /// Specifies options for the GetTemplateSummary API action.
        public let templateSummaryConfig: TemplateSummaryConfig?
        /// The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.
        public let templateURL: String?

        @inlinable
        public init(callAs: CallAs? = nil, stackName: String? = nil, stackSetName: String? = nil, templateBody: String? = nil, templateSummaryConfig: TemplateSummaryConfig? = nil, templateURL: String? = nil) {
            self.callAs = callAs
            self.stackName = stackName
            self.stackSetName = stackSetName
            self.templateBody = templateBody
            self.templateSummaryConfig = templateSummaryConfig
            self.templateURL = templateURL
        }

        public func validate(name: String) throws {
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
            try self.validate(self.stackSetName, name: "stackSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*(?::[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})?$")
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case stackName = "StackName"
            case stackSetName = "StackSetName"
            case templateBody = "TemplateBody"
            case templateSummaryConfig = "TemplateSummaryConfig"
            case templateURL = "TemplateURL"
        }
    }

    public struct GetTemplateSummaryOutput: AWSDecodableShape {
        /// The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error. For more information, see Acknowledging IAM resources in CloudFormation templates.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// The list of resources that generated the values in the Capabilities response element.
        public let capabilitiesReason: String?
        /// A list of the transforms that are declared in the template.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var declaredTransforms: [String]?
        /// The value that's defined in the Description property of the template.
        public let description: String?
        /// The value that's defined for the Metadata property of the template.
        public let metadata: String?
        /// A list of parameter declarations that describe various properties for each parameter.
        @OptionalCustomCoding<StandardArrayCoder<ParameterDeclaration>>
        public var parameters: [ParameterDeclaration]?
        /// A list of resource identifier summaries that describe the target resources of an import operation and the properties you can provide during the import to identify the target resources. For example, BucketName is a possible identifier property for an AWS::S3::Bucket resource.
        @OptionalCustomCoding<StandardArrayCoder<ResourceIdentifierSummary>>
        public var resourceIdentifierSummaries: [ResourceIdentifierSummary]?
        /// A list of all the template resource types that are defined in the template, such as AWS::EC2::Instance, AWS::Dynamo::Table, and Custom::MyCustomInstance.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourceTypes: [String]?
        /// The Amazon Web Services template format version, which identifies the capabilities of the template.
        public let version: String?
        /// An object that contains any warnings returned.
        public let warnings: Warnings?

        @inlinable
        public init(capabilities: [Capability]? = nil, capabilitiesReason: String? = nil, declaredTransforms: [String]? = nil, description: String? = nil, metadata: String? = nil, parameters: [ParameterDeclaration]? = nil, resourceIdentifierSummaries: [ResourceIdentifierSummary]? = nil, resourceTypes: [String]? = nil, version: String? = nil, warnings: Warnings? = nil) {
            self.capabilities = capabilities
            self.capabilitiesReason = capabilitiesReason
            self.declaredTransforms = declaredTransforms
            self.description = description
            self.metadata = metadata
            self.parameters = parameters
            self.resourceIdentifierSummaries = resourceIdentifierSummaries
            self.resourceTypes = resourceTypes
            self.version = version
            self.warnings = warnings
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case capabilitiesReason = "CapabilitiesReason"
            case declaredTransforms = "DeclaredTransforms"
            case description = "Description"
            case metadata = "Metadata"
            case parameters = "Parameters"
            case resourceIdentifierSummaries = "ResourceIdentifierSummaries"
            case resourceTypes = "ResourceTypes"
            case version = "Version"
            case warnings = "Warnings"
        }
    }

    public struct HookResultSummary: AWSDecodableShape {
        /// The failure mode of the invocation.
        public let failureMode: HookFailureMode?
        /// The ARN of the target stack or request token of the Cloud Control API operation. Only shown in responses when the request does not specify TargetType and TargetId filters.
        public let hookExecutionTarget: String?
        /// The unique identifier for this Hook invocation result.
        public let hookResultId: String?
        /// A description of the Hook results status. For example, if the Hook result is in a failed state, this may contain additional information for the failed state.
        public let hookStatusReason: String?
        /// The specific point in the provisioning process where the Hook is invoked.
        public let invocationPoint: HookInvocationPoint?
        /// The timestamp when the Hook was invoked. Only shown in responses when the request does not specify TargetType and TargetId filters.
        public let invokedAt: Date?
        /// The status of the Hook invocation. The following statuses are possible:    HOOK_IN_PROGRESS: The Hook is currently running.    HOOK_COMPLETE_SUCCEEDED: The Hook completed successfully.    HOOK_COMPLETE_FAILED: The Hook completed but failed validation.    HOOK_FAILED: The Hook encountered an error during execution.
        public let status: HookStatus?
        /// The unique identifier of the Hook invocation target.
        public let targetId: String?
        /// The target type that the Hook was invoked against.
        public let targetType: ListHookResultsTargetType?
        /// The ARN of the Hook that was invoked.
        public let typeArn: String?
        /// The version of the Hook configuration.
        public let typeConfigurationVersionId: String?
        /// The name of the Hook that was invoked.
        public let typeName: String?
        /// The version of the Hook that was invoked.
        public let typeVersionId: String?

        @inlinable
        public init(failureMode: HookFailureMode? = nil, hookExecutionTarget: String? = nil, hookResultId: String? = nil, hookStatusReason: String? = nil, invocationPoint: HookInvocationPoint? = nil, invokedAt: Date? = nil, status: HookStatus? = nil, targetId: String? = nil, targetType: ListHookResultsTargetType? = nil, typeArn: String? = nil, typeConfigurationVersionId: String? = nil, typeName: String? = nil, typeVersionId: String? = nil) {
            self.failureMode = failureMode
            self.hookExecutionTarget = hookExecutionTarget
            self.hookResultId = hookResultId
            self.hookStatusReason = hookStatusReason
            self.invocationPoint = invocationPoint
            self.invokedAt = invokedAt
            self.status = status
            self.targetId = targetId
            self.targetType = targetType
            self.typeArn = typeArn
            self.typeConfigurationVersionId = typeConfigurationVersionId
            self.typeName = typeName
            self.typeVersionId = typeVersionId
        }

        private enum CodingKeys: String, CodingKey {
            case failureMode = "FailureMode"
            case hookExecutionTarget = "HookExecutionTarget"
            case hookResultId = "HookResultId"
            case hookStatusReason = "HookStatusReason"
            case invocationPoint = "InvocationPoint"
            case invokedAt = "InvokedAt"
            case status = "Status"
            case targetId = "TargetId"
            case targetType = "TargetType"
            case typeArn = "TypeArn"
            case typeConfigurationVersionId = "TypeConfigurationVersionId"
            case typeName = "TypeName"
            case typeVersionId = "TypeVersionId"
        }
    }

    public struct ImportStacksToStackSetInput: AWSEncodableShape {
        /// By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   For service managed StackSets, specify DELEGATED_ADMIN.
        public let callAs: CallAs?
        /// A unique, user defined, identifier for the StackSet operation.
        public let operationId: String?
        /// The user-specified preferences for how CloudFormation performs a StackSet operation. For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
        public let operationPreferences: StackSetOperationPreferences?
        /// The list of OU ID's to which the imported stacks must be mapped as deployment targets.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var organizationalUnitIds: [String]?
        /// The IDs of the stacks you are importing into a StackSet. You import up to 10 stacks per StackSet at a time. Specify either StackIds or StackIdsUrl.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var stackIds: [String]?
        /// The Amazon S3 URL which contains list of stack ids to be inputted. Specify either StackIds or StackIdsUrl.
        public let stackIdsUrl: String?
        /// The name of the StackSet. The name must be unique in the Region where you create your StackSet.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, operationId: String? = ImportStacksToStackSetInput.idempotencyToken(), operationPreferences: StackSetOperationPreferences? = nil, organizationalUnitIds: [String]? = nil, stackIds: [String]? = nil, stackIdsUrl: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.organizationalUnitIds = organizationalUnitIds
            self.stackIds = stackIds
            self.stackIdsUrl = stackIdsUrl
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.operationPreferences?.validate(name: "\(name).operationPreferences")
            try self.organizationalUnitIds?.forEach {
                try validate($0, name: "organizationalUnitIds[]", parent: name, pattern: "^(ou-[a-z0-9]{4,32}-[a-z0-9]{8,32}|r-[a-z0-9]{4,32})$")
            }
            try self.validate(self.stackIdsUrl, name: "stackIdsUrl", parent: name, max: 5120)
            try self.validate(self.stackIdsUrl, name: "stackIdsUrl", parent: name, min: 1)
            try self.validate(self.stackIdsUrl, name: "stackIdsUrl", parent: name, pattern: "^(s3://|http(s?)://).+$")
            try self.validate(self.stackSetName, name: "stackSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*(?::[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})?$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case organizationalUnitIds = "OrganizationalUnitIds"
            case stackIds = "StackIds"
            case stackIdsUrl = "StackIdsUrl"
            case stackSetName = "StackSetName"
        }
    }

    public struct ImportStacksToStackSetOutput: AWSDecodableShape {
        /// The unique identifier for the StackSet operation.
        public let operationId: String?

        @inlinable
        public init(operationId: String? = nil) {
            self.operationId = operationId
        }

        private enum CodingKeys: String, CodingKey {
            case operationId = "OperationId"
        }
    }

    public struct ListChangeSetsInput: AWSEncodableShape {
        /// A string (provided by the ListChangeSets response output) that identifies the next page of change sets that you want to retrieve.
        public let nextToken: String?
        /// The name or the Amazon Resource Name (ARN) of the stack for which you want to list change sets.
        public let stackName: String?

        @inlinable
        public init(nextToken: String? = nil, stackName: String? = nil) {
            self.nextToken = nextToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackName = "StackName"
        }
    }

    public struct ListChangeSetsOutput: AWSDecodableShape {
        /// If the output exceeds 1 MB, a string that identifies the next page of change sets. If there is no additional page, this value is null.
        public let nextToken: String?
        /// A list of ChangeSetSummary structures that provides the ID and status of each change set for the specified stack.
        @OptionalCustomCoding<StandardArrayCoder<ChangeSetSummary>>
        public var summaries: [ChangeSetSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [ChangeSetSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListExportsInput: AWSEncodableShape {
        /// A string (provided by the ListExports response output) that identifies the next page of exported output values that you asked to retrieve.
        public let nextToken: String?

        @inlinable
        public init(nextToken: String? = nil) {
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
        }
    }

    public struct ListExportsOutput: AWSDecodableShape {
        /// The output for the ListExports action.
        @OptionalCustomCoding<StandardArrayCoder<Export>>
        public var exports: [Export]?
        /// If the output exceeds 100 exported output values, a string that identifies the next page of exports. If there is no additional page, this value is null.
        public let nextToken: String?

        @inlinable
        public init(exports: [Export]? = nil, nextToken: String? = nil) {
            self.exports = exports
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case exports = "Exports"
            case nextToken = "NextToken"
        }
    }

    public struct ListGeneratedTemplatesInput: AWSEncodableShape {
        /// If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListGeneratedTemplates API action will return at most 50 results in each response. The maximum value is 100.
        public let maxResults: Int?
        /// A string that identifies the next page of resource scan results.
        public let nextToken: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
        }
    }

    public struct ListGeneratedTemplatesOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListGeneratedTemplates again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.
        public let nextToken: String?
        /// A list of summaries of the generated templates.
        @OptionalCustomCoding<StandardArrayCoder<TemplateSummary>>
        public var summaries: [TemplateSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [TemplateSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListHookResultsInput: AWSEncodableShape {
        /// A string that identifies the next page of events that you want to retrieve.
        public let nextToken: String?
        /// Filters results by the status of Hook invocations. Can only be used in combination with TypeArn. Valid values are:    HOOK_IN_PROGRESS: The Hook is currently running.    HOOK_COMPLETE_SUCCEEDED: The Hook completed successfully.    HOOK_COMPLETE_FAILED: The Hook completed but failed validation.    HOOK_FAILED: The Hook encountered an error during execution.
        public let status: HookStatus?
        /// Filters results by the unique identifier of the target the Hook was invoked against. For change sets, this is the change set ARN. When the target is a Cloud Control API operation, this value must be the HookRequestToken returned by the Cloud Control API request. For more information on the HookRequestToken, see ProgressEvent. Required when TargetType is specified and cannot be used otherwise.
        public let targetId: String?
        /// Filters results by target type. Currently, only CHANGE_SET and CLOUD_CONTROL are supported filter options. Required when TargetId is specified and cannot be used otherwise.
        public let targetType: ListHookResultsTargetType?
        /// Filters results by the ARN of the Hook. Can be used alone or in combination with Status.
        public let typeArn: String?

        @inlinable
        public init(nextToken: String? = nil, status: HookStatus? = nil, targetId: String? = nil, targetType: ListHookResultsTargetType? = nil, typeArn: String? = nil) {
            self.nextToken = nextToken
            self.status = status
            self.targetId = targetId
            self.targetType = targetType
            self.typeArn = typeArn
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.targetId, name: "targetId", parent: name, max: 1600)
            try self.validate(self.targetId, name: "targetId", parent: name, min: 1)
            try self.validate(self.targetId, name: "targetId", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/]*|^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$")
            try self.validate(self.typeArn, name: "typeArn", parent: name, max: 1024)
            try self.validate(self.typeArn, name: "typeArn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/hook/[A-Za-z0-9-]+/?$")
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case status = "Status"
            case targetId = "TargetId"
            case targetType = "TargetType"
            case typeArn = "TypeArn"
        }
    }

    public struct ListHookResultsOutput: AWSDecodableShape {
        /// A list of HookResultSummary structures that provides the status and Hook status reason for each Hook invocation for the specified target.
        @OptionalCustomCoding<StandardArrayCoder<HookResultSummary>>
        public var hookResults: [HookResultSummary]?
        /// Pagination token, null or empty if no more results.
        public let nextToken: String?
        /// The unique identifier of the Hook invocation target.
        public let targetId: String?
        /// The target type.
        public let targetType: ListHookResultsTargetType?

        @inlinable
        public init(hookResults: [HookResultSummary]? = nil, nextToken: String? = nil, targetId: String? = nil, targetType: ListHookResultsTargetType? = nil) {
            self.hookResults = hookResults
            self.nextToken = nextToken
            self.targetId = targetId
            self.targetType = targetType
        }

        private enum CodingKeys: String, CodingKey {
            case hookResults = "HookResults"
            case nextToken = "NextToken"
            case targetId = "TargetId"
            case targetType = "TargetType"
        }
    }

    public struct ListImportsInput: AWSEncodableShape {
        /// The name of the exported output value. CloudFormation returns the stack names that are importing this value.
        public let exportName: String?
        /// A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value.
        public let nextToken: String?

        @inlinable
        public init(exportName: String? = nil, nextToken: String? = nil) {
            self.exportName = exportName
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case exportName = "ExportName"
            case nextToken = "NextToken"
        }
    }

    public struct ListImportsOutput: AWSDecodableShape {
        /// A list of stack names that are importing the specified exported output value.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var imports: [String]?
        /// A string that identifies the next page of exports. If there is no additional page, this value is null.
        public let nextToken: String?

        @inlinable
        public init(imports: [String]? = nil, nextToken: String? = nil) {
            self.imports = imports
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case imports = "Imports"
            case nextToken = "NextToken"
        }
    }

    public struct ListResourceScanRelatedResourcesInput: AWSEncodableShape {
        /// If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanRelatedResources API action will return up to 100 results in each response. The maximum value is 100.
        public let maxResults: Int?
        /// A string that identifies the next page of resource scan results.
        public let nextToken: String?
        /// The list of resources for which you want to get the related resources. Up to 100 resources can be provided.
        @OptionalCustomCoding<StandardArrayCoder<ScannedResourceIdentifier>>
        public var resources: [ScannedResourceIdentifier]?
        /// The Amazon Resource Name (ARN) of the resource scan.
        public let resourceScanId: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, resources: [ScannedResourceIdentifier]? = nil, resourceScanId: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.resources = resources
            self.resourceScanId = resourceScanId
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.resources?.forEach {
                try $0.validate(name: "\(name).resources[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case resources = "Resources"
            case resourceScanId = "ResourceScanId"
        }
    }

    public struct ListResourceScanRelatedResourcesOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScanRelatedResources again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.
        public let nextToken: String?
        /// List of up to MaxResults resources in the specified resource scan related to the specified resources.
        @OptionalCustomCoding<StandardArrayCoder<ScannedResource>>
        public var relatedResources: [ScannedResource]?

        @inlinable
        public init(nextToken: String? = nil, relatedResources: [ScannedResource]? = nil) {
            self.nextToken = nextToken
            self.relatedResources = relatedResources
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case relatedResources = "RelatedResources"
        }
    }

    public struct ListResourceScanResourcesInput: AWSEncodableShape {
        /// If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanResources API action will return at most 100 results in each response. The maximum value is 100.
        public let maxResults: Int?
        /// A string that identifies the next page of resource scan results.
        public let nextToken: String?
        /// If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).
        public let resourceIdentifier: String?
        /// The Amazon Resource Name (ARN) of the resource scan.
        public let resourceScanId: String?
        /// If specified, the returned resources will be of any of the resource types with the specified prefix.
        public let resourceTypePrefix: String?
        /// If specified, the returned resources will have a matching tag key.
        public let tagKey: String?
        /// If specified, the returned resources will have a matching tag value.
        public let tagValue: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, resourceIdentifier: String? = nil, resourceScanId: String? = nil, resourceTypePrefix: String? = nil, tagKey: String? = nil, tagValue: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.resourceIdentifier = resourceIdentifier
            self.resourceScanId = resourceScanId
            self.resourceTypePrefix = resourceTypePrefix
            self.tagKey = tagKey
            self.tagValue = tagValue
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.tagKey, name: "tagKey", parent: name, max: 128)
            try self.validate(self.tagKey, name: "tagKey", parent: name, min: 1)
            try self.validate(self.tagValue, name: "tagValue", parent: name, max: 256)
            try self.validate(self.tagValue, name: "tagValue", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case resourceIdentifier = "ResourceIdentifier"
            case resourceScanId = "ResourceScanId"
            case resourceTypePrefix = "ResourceTypePrefix"
            case tagKey = "TagKey"
            case tagValue = "TagValue"
        }
    }

    public struct ListResourceScanResourcesOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScanResources again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.
        public let nextToken: String?
        /// List of up to MaxResults resources in the specified resource scan that match all of the specified filters.
        @OptionalCustomCoding<StandardArrayCoder<ScannedResource>>
        public var resources: [ScannedResource]?

        @inlinable
        public init(nextToken: String? = nil, resources: [ScannedResource]? = nil) {
            self.nextToken = nextToken
            self.resources = resources
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case resources = "Resources"
        }
    }

    public struct ListResourceScansInput: AWSEncodableShape {
        /// If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.
        public let maxResults: Int?
        /// A string that identifies the next page of resource scan results.
        public let nextToken: String?
        /// The scan type that you want to get summary information about. The default is FULL.
        public let scanTypeFilter: ScanType?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, scanTypeFilter: ScanType? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.scanTypeFilter = scanTypeFilter
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case scanTypeFilter = "ScanTypeFilter"
        }
    }

    public struct ListResourceScansOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScans again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.
        public let nextToken: String?
        /// The list of scans returned.
        @OptionalCustomCoding<StandardArrayCoder<ResourceScanSummary>>
        public var resourceScanSummaries: [ResourceScanSummary]?

        @inlinable
        public init(nextToken: String? = nil, resourceScanSummaries: [ResourceScanSummary]? = nil) {
            self.nextToken = nextToken
            self.resourceScanSummaries = resourceScanSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case resourceScanSummaries = "ResourceScanSummaries"
        }
    }

    public struct ListStackInstanceResourceDriftsInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The unique ID of the drift operation.
        public let operationId: String?
        /// The name of the Amazon Web Services account that you want to list resource drifts for.
        public let stackInstanceAccount: String?
        /// The name of the Region where you want to list resource drifts.
        public let stackInstanceRegion: String?
        /// The resource drift status of the stack instance.     DELETED: The resource differs from its expected template configuration in that the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected template values.    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation doesn't currently return this value.
        @OptionalCustomCoding<StandardArrayCoder<StackResourceDriftStatus>>
        public var stackInstanceResourceDriftStatuses: [StackResourceDriftStatus]?
        /// The name or unique ID of the StackSet that you want to list drifted resources for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, maxResults: Int? = nil, nextToken: String? = nil, operationId: String? = nil, stackInstanceAccount: String? = nil, stackInstanceRegion: String? = nil, stackInstanceResourceDriftStatuses: [StackResourceDriftStatus]? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.operationId = operationId
            self.stackInstanceAccount = stackInstanceAccount
            self.stackInstanceRegion = stackInstanceRegion
            self.stackInstanceResourceDriftStatuses = stackInstanceResourceDriftStatuses
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.stackInstanceAccount, name: "stackInstanceAccount", parent: name, pattern: "^[0-9]{12}$")
            try self.validate(self.stackInstanceRegion, name: "stackInstanceRegion", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
            try self.validate(self.stackInstanceResourceDriftStatuses, name: "stackInstanceResourceDriftStatuses", parent: name, max: 4)
            try self.validate(self.stackInstanceResourceDriftStatuses, name: "stackInstanceResourceDriftStatuses", parent: name, min: 1)
            try self.validate(self.stackSetName, name: "stackSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*(?::[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})?$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case operationId = "OperationId"
            case stackInstanceAccount = "StackInstanceAccount"
            case stackInstanceRegion = "StackInstanceRegion"
            case stackInstanceResourceDriftStatuses = "StackInstanceResourceDriftStatuses"
            case stackSetName = "StackSetName"
        }
    }

    public struct ListStackInstanceResourceDriftsOutput: AWSDecodableShape {
        /// If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// A list of StackInstanceResourceDriftsSummary structures that contain information about the specified stack instances.
        @OptionalCustomCoding<StandardArrayCoder<StackInstanceResourceDriftsSummary>>
        public var summaries: [StackInstanceResourceDriftsSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [StackInstanceResourceDriftsSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListStackInstancesInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The filter to apply to stack instances
        @OptionalCustomCoding<StandardArrayCoder<StackInstanceFilter>>
        public var filters: [StackInstanceFilter]?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous request didn't return all the remaining results, the response's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The name of the Amazon Web Services account that you want to list stack instances for.
        public let stackInstanceAccount: String?
        /// The name of the Region where you want to list stack instances.
        public let stackInstanceRegion: String?
        /// The name or unique ID of the StackSet that you want to list stack instances for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, filters: [StackInstanceFilter]? = nil, maxResults: Int? = nil, nextToken: String? = nil, stackInstanceAccount: String? = nil, stackInstanceRegion: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.filters = filters
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.stackInstanceAccount = stackInstanceAccount
            self.stackInstanceRegion = stackInstanceRegion
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.filters?.forEach {
                try $0.validate(name: "\(name).filters[]")
            }
            try self.validate(self.filters, name: "filters", parent: name, max: 3)
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.stackInstanceAccount, name: "stackInstanceAccount", parent: name, pattern: "^[0-9]{12}$")
            try self.validate(self.stackInstanceRegion, name: "stackInstanceRegion", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case filters = "Filters"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case stackInstanceAccount = "StackInstanceAccount"
            case stackInstanceRegion = "StackInstanceRegion"
            case stackSetName = "StackSetName"
        }
    }

    public struct ListStackInstancesOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// A list of StackInstanceSummary structures that contain information about the specified stack instances.
        @OptionalCustomCoding<StandardArrayCoder<StackInstanceSummary>>
        public var summaries: [StackInstanceSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [StackInstanceSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListStackRefactorActionsInput: AWSEncodableShape {
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// The ID associated with the stack refactor created from the CreateStackRefactor action.
        public let stackRefactorId: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, stackRefactorId: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.stackRefactorId = stackRefactorId
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case stackRefactorId = "StackRefactorId"
        }
    }

    public struct ListStackRefactorActionsOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// The stack refactor actions.
        @OptionalCustomCoding<StandardArrayCoder<StackRefactorAction>>
        public var stackRefactorActions: [StackRefactorAction]?

        @inlinable
        public init(nextToken: String? = nil, stackRefactorActions: [StackRefactorAction]? = nil) {
            self.nextToken = nextToken
            self.stackRefactorActions = stackRefactorActions
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackRefactorActions = "StackRefactorActions"
        }
    }

    public struct ListStackRefactorsInput: AWSEncodableShape {
        /// Execution status to use as a filter. Specify one or more execution status codes to list only stack refactors with the specified execution status codes.
        @OptionalCustomCoding<StandardArrayCoder<StackRefactorExecutionStatus>>
        public var executionStatusFilter: [StackRefactorExecutionStatus]?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?

        @inlinable
        public init(executionStatusFilter: [StackRefactorExecutionStatus]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.executionStatusFilter = executionStatusFilter
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case executionStatusFilter = "ExecutionStatusFilter"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
        }
    }

    public struct ListStackRefactorsOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// Provides a summary of a stack refactor, including the following:    StackRefactorId     Status     StatusReason     ExecutionStatus     ExecutionStatusReason     Description
        @OptionalCustomCoding<StandardArrayCoder<StackRefactorSummary>>
        public var stackRefactorSummaries: [StackRefactorSummary]?

        @inlinable
        public init(nextToken: String? = nil, stackRefactorSummaries: [StackRefactorSummary]? = nil) {
            self.nextToken = nextToken
            self.stackRefactorSummaries = stackRefactorSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackRefactorSummaries = "StackRefactorSummaries"
        }
    }

    public struct ListStackResourcesInput: AWSEncodableShape {
        /// A string that identifies the next page of stack resources that you want to retrieve.
        public let nextToken: String?
        /// The name or the unique stack ID that is associated with the stack, which aren't always interchangeable:   Running stacks: You can specify either the stack's name or its unique stack ID.   Deleted stacks: You must specify the unique stack ID.
        public let stackName: String?

        @inlinable
        public init(nextToken: String? = nil, stackName: String? = nil) {
            self.nextToken = nextToken
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackName = "StackName"
        }
    }

    public struct ListStackResourcesOutput: AWSDecodableShape {
        /// If the output exceeds 1 MB, a string that identifies the next page of stack resources. If no additional page exists, this value is null.
        public let nextToken: String?
        /// A list of StackResourceSummary structures.
        @OptionalCustomCoding<StandardArrayCoder<StackResourceSummary>>
        public var stackResourceSummaries: [StackResourceSummary]?

        @inlinable
        public init(nextToken: String? = nil, stackResourceSummaries: [StackResourceSummary]? = nil) {
            self.nextToken = nextToken
            self.stackResourceSummaries = stackResourceSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackResourceSummaries = "StackResourceSummaries"
        }
    }

    public struct ListStackSetAutoDeploymentTargetsInput: AWSEncodableShape {
        /// Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// A string that identifies the next page of deployment targets that you want to retrieve.
        public let nextToken: String?
        /// The name or unique ID of the StackSet that you want to get automatic deployment targets for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, maxResults: Int? = nil, nextToken: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.stackSetName, name: "stackSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*(?::[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})?$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case stackSetName = "StackSetName"
        }
    }

    public struct ListStackSetAutoDeploymentTargetsOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListStackSetAutoDeploymentTargets again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.
        public let nextToken: String?
        /// An array of summaries of the deployment targets for the StackSet.
        @OptionalCustomCoding<StandardArrayCoder<StackSetAutoDeploymentTargetSummary>>
        public var summaries: [StackSetAutoDeploymentTargetSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [StackSetAutoDeploymentTargetSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListStackSetOperationResultsInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The filter to apply to operation results.
        @OptionalCustomCoding<StandardArrayCoder<OperationResultFilter>>
        public var filters: [OperationResultFilter]?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSetOperationResults again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The ID of the StackSet operation.
        public let operationId: String?
        /// The name or unique ID of the StackSet that you want to get operation results for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, filters: [OperationResultFilter]? = nil, maxResults: Int? = nil, nextToken: String? = nil, operationId: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.filters = filters
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.operationId = operationId
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.filters?.forEach {
                try $0.validate(name: "\(name).filters[]")
            }
            try self.validate(self.filters, name: "filters", parent: name, max: 1)
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case filters = "Filters"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case operationId = "OperationId"
            case stackSetName = "StackSetName"
        }
    }

    public struct ListStackSetOperationResultsOutput: AWSDecodableShape {
        /// If the request doesn't return all results, NextToken is set to a token. To retrieve the next set of results, call ListOperationResults again and assign that token to the request object's NextToken parameter. If there are no remaining results, NextToken is set to null.
        public let nextToken: String?
        /// A list of StackSetOperationResultSummary structures that contain information about the specified operation results, for accounts and Amazon Web Services Regions that are included in the operation.
        @OptionalCustomCoding<StandardArrayCoder<StackSetOperationResultSummary>>
        public var summaries: [StackSetOperationResultSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [StackSetOperationResultSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListStackSetOperationsInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSetOperations again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The name or unique ID of the StackSet that you want to get operation summaries for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, maxResults: Int? = nil, nextToken: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case stackSetName = "StackSetName"
        }
    }

    public struct ListStackSetOperationsOutput: AWSDecodableShape {
        /// If the request doesn't return all results, NextToken is set to a token. To retrieve the next set of results, call ListOperationResults again and assign that token to the request object's NextToken parameter. If there are no remaining results, NextToken is set to null.
        public let nextToken: String?
        /// A list of StackSetOperationSummary structures that contain summary information about operations for the specified StackSet.
        @OptionalCustomCoding<StandardArrayCoder<StackSetOperationSummary>>
        public var summaries: [StackSetOperationSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [StackSetOperationSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListStackSetsInput: AWSEncodableShape {
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous paginated request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call ListStackSets again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The status of the StackSets that you want to get summary information about.
        public let status: StackSetStatus?

        @inlinable
        public init(callAs: CallAs? = nil, maxResults: Int? = nil, nextToken: String? = nil, status: StackSetStatus? = nil) {
            self.callAs = callAs
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.status = status
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case status = "Status"
        }
    }

    public struct ListStackSetsOutput: AWSDecodableShape {
        /// If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// A list of StackSetSummary structures that contain information about the user's StackSets.
        @OptionalCustomCoding<StandardArrayCoder<StackSetSummary>>
        public var summaries: [StackSetSummary]?

        @inlinable
        public init(nextToken: String? = nil, summaries: [StackSetSummary]? = nil) {
            self.nextToken = nextToken
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case summaries = "Summaries"
        }
    }

    public struct ListStacksInput: AWSEncodableShape {
        /// A string that identifies the next page of stacks that you want to retrieve.
        public let nextToken: String?
        /// Stack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the StackStatus parameter of the Stack data type.
        @OptionalCustomCoding<StandardArrayCoder<StackStatus>>
        public var stackStatusFilter: [StackStatus]?

        @inlinable
        public init(nextToken: String? = nil, stackStatusFilter: [StackStatus]? = nil) {
            self.nextToken = nextToken
            self.stackStatusFilter = stackStatusFilter
        }

        public func validate(name: String) throws {
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackStatusFilter = "StackStatusFilter"
        }
    }

    public struct ListStacksOutput: AWSDecodableShape {
        /// If the output exceeds 1 MB in size, a string that identifies the next page of stacks. If no additional page exists, this value is null.
        public let nextToken: String?
        /// A list of StackSummary structures that contains information about the specified stacks.
        @OptionalCustomCoding<StandardArrayCoder<StackSummary>>
        public var stackSummaries: [StackSummary]?

        @inlinable
        public init(nextToken: String? = nil, stackSummaries: [StackSummary]? = nil) {
            self.nextToken = nextToken
            self.stackSummaries = stackSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case stackSummaries = "StackSummaries"
        }
    }

    public struct ListTypeRegistrationsInput: AWSEncodableShape {
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous paginated request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The current status of the extension registration request. The default is IN_PROGRESS.
        public let registrationStatusFilter: RegistrationStatus?
        /// The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let type: RegistryType?
        /// The Amazon Resource Name (ARN) of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let typeArn: String?
        /// The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let typeName: String?

        @inlinable
        public init(maxResults: Int? = nil, nextToken: String? = nil, registrationStatusFilter: RegistrationStatus? = nil, type: RegistryType? = nil, typeArn: String? = nil, typeName: String? = nil) {
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.registrationStatusFilter = registrationStatusFilter
            self.type = type
            self.typeArn = typeArn
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.typeArn, name: "typeArn", parent: name, max: 1024)
            try self.validate(self.typeArn, name: "typeArn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case registrationStatusFilter = "RegistrationStatusFilter"
            case type = "Type"
            case typeArn = "TypeArn"
            case typeName = "TypeName"
        }
    }

    public struct ListTypeRegistrationsOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// A list of extension registration tokens. Use DescribeTypeRegistration to return detailed information about a type registration request.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var registrationTokenList: [String]?

        @inlinable
        public init(nextToken: String? = nil, registrationTokenList: [String]? = nil) {
            self.nextToken = nextToken
            self.registrationTokenList = registrationTokenList
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case registrationTokenList = "RegistrationTokenList"
        }
    }

    public struct ListTypeVersionsInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
        public let arn: String?
        /// The deprecation status of the extension versions that you want to get summary information about. Valid values include:    LIVE: The extension version is registered and can be used in CloudFormation operations, dependent on its provisioning behavior and visibility scope.    DEPRECATED: The extension version has been deregistered and can no longer be used in CloudFormation operations.   The default is LIVE.
        public let deprecatedStatus: DeprecatedStatus?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous paginated request didn't return all of the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// The publisher ID of the extension publisher. Extensions published by Amazon aren't assigned a publisher ID.
        public let publisherId: String?
        /// The kind of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let type: RegistryType?
        /// The name of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
        public let typeName: String?

        @inlinable
        public init(arn: String? = nil, deprecatedStatus: DeprecatedStatus? = nil, maxResults: Int? = nil, nextToken: String? = nil, publisherId: String? = nil, type: RegistryType? = nil, typeName: String? = nil) {
            self.arn = arn
            self.deprecatedStatus = deprecatedStatus
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.publisherId = publisherId
            self.type = type
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+$")
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
            try self.validate(self.publisherId, name: "publisherId", parent: name, max: 40)
            try self.validate(self.publisherId, name: "publisherId", parent: name, min: 1)
            try self.validate(self.publisherId, name: "publisherId", parent: name, pattern: "^[0-9a-zA-Z]{12,40}$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case deprecatedStatus = "DeprecatedStatus"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case publisherId = "PublisherId"
            case type = "Type"
            case typeName = "TypeName"
        }
    }

    public struct ListTypeVersionsOutput: AWSDecodableShape {
        /// If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// A list of TypeVersionSummary structures that contain information about the specified extension's versions.
        @OptionalCustomCoding<StandardArrayCoder<TypeVersionSummary>>
        public var typeVersionSummaries: [TypeVersionSummary]?

        @inlinable
        public init(nextToken: String? = nil, typeVersionSummaries: [TypeVersionSummary]? = nil) {
            self.nextToken = nextToken
            self.typeVersionSummaries = typeVersionSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case typeVersionSummaries = "TypeVersionSummaries"
        }
    }

    public struct ListTypesInput: AWSEncodableShape {
        /// The deprecation status of the extension that you want to get summary information about. Valid values include:    LIVE: The extension is registered for use in CloudFormation operations.    DEPRECATED: The extension has been deregistered and can no longer be used in CloudFormation operations.
        public let deprecatedStatus: DeprecatedStatus?
        /// Filter criteria to use in determining which extensions to return. Filters must be compatible with Visibility to return valid results. For example, specifying AWS_TYPES for Category and PRIVATE for Visibility returns an empty list of types, but specifying PUBLIC for Visibility returns the desired list.
        public let filters: TypeFilters?
        /// The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
        public let maxResults: Int?
        /// If the previous paginated request didn't return all the remaining results, the response object's NextToken parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null.
        public let nextToken: String?
        /// For resource types, the provisioning behavior of the resource type. CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted. Valid values include:    FULLY_MUTABLE: The resource type includes an update handler to process updates to the type during stack update operations.    IMMUTABLE: The resource type doesn't include an update handler, so the type can't be updated and must instead be replaced during stack update operations.    NON_PROVISIONABLE: The resource type doesn't include create, read, and delete handlers, and therefore can't actually be provisioned.   The default is FULLY_MUTABLE.
        public let provisioningType: ProvisioningType?
        /// The type of extension.
        public let type: RegistryType?
        /// The scope at which the extensions are visible and usable in CloudFormation operations. Valid values include:    PRIVATE: Extensions that are visible and usable within this account and Region. This includes:   Private extensions you have registered in this account and Region.   Public extensions that you have activated in this account and Region.      PUBLIC: Extensions that are publicly visible and available to be activated within any Amazon Web Services account. This includes extensions from Amazon Web Services and third-party publishers.   The default is PRIVATE.
        public let visibility: Visibility?

        @inlinable
        public init(deprecatedStatus: DeprecatedStatus? = nil, filters: TypeFilters? = nil, maxResults: Int? = nil, nextToken: String? = nil, provisioningType: ProvisioningType? = nil, type: RegistryType? = nil, visibility: Visibility? = nil) {
            self.deprecatedStatus = deprecatedStatus
            self.filters = filters
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.provisioningType = provisioningType
            self.type = type
            self.visibility = visibility
        }

        public func validate(name: String) throws {
            try self.filters?.validate(name: "\(name).filters")
            try self.validate(self.maxResults, name: "maxResults", parent: name, max: 100)
            try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
            try self.validate(self.nextToken, name: "nextToken", parent: name, max: 1024)
            try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case deprecatedStatus = "DeprecatedStatus"
            case filters = "Filters"
            case maxResults = "MaxResults"
            case nextToken = "NextToken"
            case provisioningType = "ProvisioningType"
            case type = "Type"
            case visibility = "Visibility"
        }
    }

    public struct ListTypesOutput: AWSDecodableShape {
        /// If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.
        public let nextToken: String?
        /// A list of TypeSummary structures that contain information about the specified extensions.
        @OptionalCustomCoding<StandardArrayCoder<TypeSummary>>
        public var typeSummaries: [TypeSummary]?

        @inlinable
        public init(nextToken: String? = nil, typeSummaries: [TypeSummary]? = nil) {
            self.nextToken = nextToken
            self.typeSummaries = typeSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken = "NextToken"
            case typeSummaries = "TypeSummaries"
        }
    }

    public struct LoggingConfig: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.
        public let logGroupName: String?
        /// The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.
        public let logRoleArn: String?

        @inlinable
        public init(logGroupName: String? = nil, logRoleArn: String? = nil) {
            self.logGroupName = logGroupName
            self.logRoleArn = logRoleArn
        }

        public func validate(name: String) throws {
            try self.validate(self.logGroupName, name: "logGroupName", parent: name, max: 512)
            try self.validate(self.logGroupName, name: "logGroupName", parent: name, min: 1)
            try self.validate(self.logGroupName, name: "logGroupName", parent: name, pattern: "^[\\.\\-_/#A-Za-z0-9]+$")
            try self.validate(self.logRoleArn, name: "logRoleArn", parent: name, max: 256)
            try self.validate(self.logRoleArn, name: "logRoleArn", parent: name, min: 1)
            try self.validate(self.logRoleArn, name: "logRoleArn", parent: name, pattern: "^arn:.+:iam::[0-9]{12}:role/.+$")
        }

        private enum CodingKeys: String, CodingKey {
            case logGroupName = "LogGroupName"
            case logRoleArn = "LogRoleArn"
        }
    }

    public struct ManagedExecution: AWSEncodableShape & AWSDecodableShape {
        /// When true, CloudFormation performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, CloudFormation starts queued operations in request order.  If there are already running or queued operations, CloudFormation queues all incoming operations even if they are non-conflicting. You can't modify your StackSet's execution configuration while there are running or queued operations for that StackSet.  When false (default), StackSets performs one operation at a time in request order.
        public let active: Bool?

        @inlinable
        public init(active: Bool? = nil) {
            self.active = active
        }

        private enum CodingKeys: String, CodingKey {
            case active = "Active"
        }
    }

    public struct ModuleInfo: AWSDecodableShape {
        /// A concatenated list of the logical IDs of the module or modules that contains the resource. Modules are listed starting with the inner-most nested module, and separated by /. In the following example, the resource was created from a module, moduleA, that's nested inside a parent module, moduleB.  moduleA/moduleB  For more information, see Reference module resources in CloudFormation templates in the CloudFormation User Guide.
        public let logicalIdHierarchy: String?
        /// A concatenated list of the module type or types that contains the resource. Module types are listed starting with the inner-most nested module, and separated by /. In the following example, the resource was created from a module of type AWS::First::Example::MODULE, that's nested inside a parent module of type AWS::Second::Example::MODULE.  AWS::First::Example::MODULE/AWS::Second::Example::MODULE
        public let typeHierarchy: String?

        @inlinable
        public init(logicalIdHierarchy: String? = nil, typeHierarchy: String? = nil) {
            self.logicalIdHierarchy = logicalIdHierarchy
            self.typeHierarchy = typeHierarchy
        }

        private enum CodingKeys: String, CodingKey {
            case logicalIdHierarchy = "LogicalIdHierarchy"
            case typeHierarchy = "TypeHierarchy"
        }
    }

    public struct OperationResultFilter: AWSEncodableShape {
        /// The type of filter to apply.
        public let name: OperationResultFilterName?
        /// The value to filter by.
        public let values: String?

        @inlinable
        public init(name: OperationResultFilterName? = nil, values: String? = nil) {
            self.name = name
            self.values = values
        }

        public func validate(name: String) throws {
            try self.validate(self.values, name: "values", parent: name, max: 9)
            try self.validate(self.values, name: "values", parent: name, min: 6)
            try self.validate(self.values, name: "values", parent: name, pattern: "^\\S{6,9}$")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case values = "Values"
        }
    }

    public struct Output: AWSDecodableShape {
        /// User defined description associated with the output.
        public let description: String?
        /// The name of the export associated with the output.
        public let exportName: String?
        /// The key associated with the output.
        public let outputKey: String?
        /// The value associated with the output.
        public let outputValue: String?

        @inlinable
        public init(description: String? = nil, exportName: String? = nil, outputKey: String? = nil, outputValue: String? = nil) {
            self.description = description
            self.exportName = exportName
            self.outputKey = outputKey
            self.outputValue = outputValue
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case exportName = "ExportName"
            case outputKey = "OutputKey"
            case outputValue = "OutputValue"
        }
    }

    public struct Parameter: AWSEncodableShape & AWSDecodableShape {
        /// The key associated with the parameter. If you don't specify a key and value for a particular parameter, CloudFormation uses the default value that's specified in your template.
        public let parameterKey: String?
        /// The input value associated with the parameter.
        public let parameterValue: String?
        /// Read-only. The value that corresponds to a Systems Manager parameter key. This field is returned only for Systems Manager parameter types in the template. For more information, see Specify existing resources at runtime with CloudFormation-supplied parameter types in the CloudFormation User Guide.
        public let resolvedValue: String?
        /// During a stack update, use the existing parameter value that the stack is using for a given parameter key. If you specify true, do not specify a parameter value.
        public let usePreviousValue: Bool?

        @inlinable
        public init(parameterKey: String? = nil, parameterValue: String? = nil, resolvedValue: String? = nil, usePreviousValue: Bool? = nil) {
            self.parameterKey = parameterKey
            self.parameterValue = parameterValue
            self.resolvedValue = resolvedValue
            self.usePreviousValue = usePreviousValue
        }

        private enum CodingKeys: String, CodingKey {
            case parameterKey = "ParameterKey"
            case parameterValue = "ParameterValue"
            case resolvedValue = "ResolvedValue"
            case usePreviousValue = "UsePreviousValue"
        }
    }

    public struct ParameterConstraints: AWSDecodableShape {
        /// A list of values that are permitted for a parameter.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var allowedValues: [String]?

        @inlinable
        public init(allowedValues: [String]? = nil) {
            self.allowedValues = allowedValues
        }

        private enum CodingKeys: String, CodingKey {
            case allowedValues = "AllowedValues"
        }
    }

    public struct ParameterDeclaration: AWSDecodableShape {
        /// The default value of the parameter.
        public let defaultValue: String?
        /// The description that's associate with the parameter.
        public let description: String?
        /// Flag that indicates whether the parameter value is shown as plain text in logs and in the Amazon Web Services Management Console.
        public let noEcho: Bool?
        /// The criteria that CloudFormation uses to validate parameter values.
        public let parameterConstraints: ParameterConstraints?
        /// The name that's associated with the parameter.
        public let parameterKey: String?
        /// The type of parameter.
        public let parameterType: String?

        @inlinable
        public init(defaultValue: String? = nil, description: String? = nil, noEcho: Bool? = nil, parameterConstraints: ParameterConstraints? = nil, parameterKey: String? = nil, parameterType: String? = nil) {
            self.defaultValue = defaultValue
            self.description = description
            self.noEcho = noEcho
            self.parameterConstraints = parameterConstraints
            self.parameterKey = parameterKey
            self.parameterType = parameterType
        }

        private enum CodingKeys: String, CodingKey {
            case defaultValue = "DefaultValue"
            case description = "Description"
            case noEcho = "NoEcho"
            case parameterConstraints = "ParameterConstraints"
            case parameterKey = "ParameterKey"
            case parameterType = "ParameterType"
        }
    }

    public struct PhysicalResourceIdContextKeyValuePair: AWSDecodableShape {
        /// The resource context key.
        public let key: String?
        /// The resource context value.
        public let value: String?

        @inlinable
        public init(key: String? = nil, value: String? = nil) {
            self.key = key
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case key = "Key"
            case value = "Value"
        }
    }

    public struct PropertyDifference: AWSDecodableShape {
        /// The actual property value of the resource property.
        public let actualValue: String?
        /// The type of property difference.    ADD: A value has been added to a resource property that's an array or list data type.    REMOVE: The property has been removed from the current resource configuration.    NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).
        public let differenceType: DifferenceType?
        /// The expected property value of the resource property, as defined in the stack template and any values specified as template parameters.
        public let expectedValue: String?
        /// The fully-qualified path to the resource property.
        public let propertyPath: String?

        @inlinable
        public init(actualValue: String? = nil, differenceType: DifferenceType? = nil, expectedValue: String? = nil, propertyPath: String? = nil) {
            self.actualValue = actualValue
            self.differenceType = differenceType
            self.expectedValue = expectedValue
            self.propertyPath = propertyPath
        }

        private enum CodingKeys: String, CodingKey {
            case actualValue = "ActualValue"
            case differenceType = "DifferenceType"
            case expectedValue = "ExpectedValue"
            case propertyPath = "PropertyPath"
        }
    }

    public struct PublishTypeInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the extension. Conditional: You must specify Arn, or TypeName and Type.
        public let arn: String?
        /// The version number to assign to this version of the extension. Use the following format, and adhere to semantic versioning when assigning a version number to your extension:  MAJOR.MINOR.PATCH  For more information, see Semantic Versioning 2.0.0. If you don't specify a version number, CloudFormation increments the version number by one minor version release. You cannot specify a version number the first time you publish a type. CloudFormation automatically sets the first version number to be 1.0.0.
        public let publicVersionNumber: String?
        /// The type of the extension. Conditional: You must specify Arn, or TypeName and Type.
        public let type: ThirdPartyType?
        /// The name of the extension. Conditional: You must specify Arn, or TypeName and Type.
        public let typeName: String?

        @inlinable
        public init(arn: String? = nil, publicVersionNumber: String? = nil, type: ThirdPartyType? = nil, typeName: String? = nil) {
            self.arn = arn
            self.publicVersionNumber = publicVersionNumber
            self.type = type
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:[0-9]{12}:type/.+$")
            try self.validate(self.publicVersionNumber, name: "publicVersionNumber", parent: name, min: 5)
            try self.validate(self.publicVersionNumber, name: "publicVersionNumber", parent: name, pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(.*)$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case publicVersionNumber = "PublicVersionNumber"
            case type = "Type"
            case typeName = "TypeName"
        }
    }

    public struct PublishTypeOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) assigned to the public extension upon publication.
        public let publicTypeArn: String?

        @inlinable
        public init(publicTypeArn: String? = nil) {
            self.publicTypeArn = publicTypeArn
        }

        private enum CodingKeys: String, CodingKey {
            case publicTypeArn = "PublicTypeArn"
        }
    }

    public struct RecordHandlerProgressInput: AWSEncodableShape {
        /// Reserved for use by the CloudFormation CLI.
        public let bearerToken: String?
        /// Reserved for use by the CloudFormation CLI.
        public let clientRequestToken: String?
        /// Reserved for use by the CloudFormation CLI.
        public let currentOperationStatus: OperationStatus?
        /// Reserved for use by the CloudFormation CLI.
        public let errorCode: HandlerErrorCode?
        /// Reserved for use by the CloudFormation CLI.
        public let operationStatus: OperationStatus?
        /// Reserved for use by the CloudFormation CLI.
        public let resourceModel: String?
        /// Reserved for use by the CloudFormation CLI.
        public let statusMessage: String?

        @inlinable
        public init(bearerToken: String? = nil, clientRequestToken: String? = nil, currentOperationStatus: OperationStatus? = nil, errorCode: HandlerErrorCode? = nil, operationStatus: OperationStatus? = nil, resourceModel: String? = nil, statusMessage: String? = nil) {
            self.bearerToken = bearerToken
            self.clientRequestToken = clientRequestToken
            self.currentOperationStatus = currentOperationStatus
            self.errorCode = errorCode
            self.operationStatus = operationStatus
            self.resourceModel = resourceModel
            self.statusMessage = statusMessage
        }

        public func validate(name: String) throws {
            try self.validate(self.bearerToken, name: "bearerToken", parent: name, max: 128)
            try self.validate(self.bearerToken, name: "bearerToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.resourceModel, name: "resourceModel", parent: name, max: 16384)
            try self.validate(self.resourceModel, name: "resourceModel", parent: name, min: 1)
            try self.validate(self.statusMessage, name: "statusMessage", parent: name, max: 1024)
        }

        private enum CodingKeys: String, CodingKey {
            case bearerToken = "BearerToken"
            case clientRequestToken = "ClientRequestToken"
            case currentOperationStatus = "CurrentOperationStatus"
            case errorCode = "ErrorCode"
            case operationStatus = "OperationStatus"
            case resourceModel = "ResourceModel"
            case statusMessage = "StatusMessage"
        }
    }

    public struct RecordHandlerProgressOutput: AWSDecodableShape {
        public init() {}
    }

    public struct RegisterPublisherInput: AWSEncodableShape {
        /// Whether you accept the Terms and Conditions for publishing extensions in the CloudFormation registry. You must accept the terms and conditions in order to register to publish public extensions to the CloudFormation registry. The default is false.
        public let acceptTermsAndConditions: Bool?
        /// If you are using a Bitbucket or GitHub account for identity verification, the Amazon Resource Name (ARN) for your connection to that account. For more information, see Prerequisite: Registering your account to publish CloudFormation extensions in the CloudFormation Command Line Interface (CLI) User Guide.
        public let connectionArn: String?

        @inlinable
        public init(acceptTermsAndConditions: Bool? = nil, connectionArn: String? = nil) {
            self.acceptTermsAndConditions = acceptTermsAndConditions
            self.connectionArn = connectionArn
        }

        public func validate(name: String) throws {
            try self.validate(self.connectionArn, name: "connectionArn", parent: name, max: 256)
            try self.validate(self.connectionArn, name: "connectionArn", parent: name, min: 1)
            try self.validate(self.connectionArn, name: "connectionArn", parent: name, pattern: "^arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+$")
        }

        private enum CodingKeys: String, CodingKey {
            case acceptTermsAndConditions = "AcceptTermsAndConditions"
            case connectionArn = "ConnectionArn"
        }
    }

    public struct RegisterPublisherOutput: AWSDecodableShape {
        /// The ID assigned this account by CloudFormation for publishing extensions.
        public let publisherId: String?

        @inlinable
        public init(publisherId: String? = nil) {
            self.publisherId = publisherId
        }

        private enum CodingKeys: String, CodingKey {
            case publisherId = "PublisherId"
        }
    }

    public struct RegisterTypeInput: AWSEncodableShape {
        /// A unique identifier that acts as an idempotency key for this registration request. Specifying a client request token prevents CloudFormation from generating more than one version of an extension from the same registration request, even if the request is submitted multiple times.
        public let clientRequestToken: String?
        /// The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the extension. For CloudFormation to assume the specified execution role, the role must contain a trust relationship with the CloudFormation service principal (resources.cloudformation.amazonaws.com). For more information about adding trust relationships, see Modifying a role trust policy in the Identity and Access Management User Guide. If your extension calls Amazon Web Services APIs in any of its handlers, you must create an  IAM execution role that includes the necessary permissions to call those Amazon Web Services APIs, and provision that execution role in your account. When CloudFormation needs to invoke the resource type handler, CloudFormation assumes this execution role to create a temporary session token, which it then passes to the resource type handler, thereby supplying your resource type with the appropriate credentials.
        public let executionRoleArn: String?
        /// Specifies logging configuration information for an extension.
        public let loggingConfig: LoggingConfig?
        /// A URL to the S3 bucket that contains the extension project package that contains the necessary files for the extension you want to register. For information about generating a schema handler package for the extension you want to register, see submit in the CloudFormation Command Line Interface (CLI) User Guide.  The user registering the extension must be able to access the package in the S3 bucket. That's, the user needs to have GetObject permissions for the schema handler package. For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the Identity and Access Management User Guide.
        public let schemaHandlerPackage: String?
        /// The kind of extension.
        public let type: RegistryType?
        /// The name of the extension being registered. We suggest that extension names adhere to the following patterns:   For resource types, company_or_organization::service::type.   For modules, company_or_organization::service::type::MODULE.   For Hooks, MyCompany::Testing::MyTestHook.    The following organization namespaces are reserved and can't be used in your extension names:    Alexa     AMZN     Amazon     AWS     Custom     Dev
        public let typeName: String?

        @inlinable
        public init(clientRequestToken: String? = nil, executionRoleArn: String? = nil, loggingConfig: LoggingConfig? = nil, schemaHandlerPackage: String? = nil, type: RegistryType? = nil, typeName: String? = nil) {
            self.clientRequestToken = clientRequestToken
            self.executionRoleArn = executionRoleArn
            self.loggingConfig = loggingConfig
            self.schemaHandlerPackage = schemaHandlerPackage
            self.type = type
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.executionRoleArn, name: "executionRoleArn", parent: name, max: 256)
            try self.validate(self.executionRoleArn, name: "executionRoleArn", parent: name, min: 1)
            try self.validate(self.executionRoleArn, name: "executionRoleArn", parent: name, pattern: "^arn:.+:iam::[0-9]{12}:role/.+$")
            try self.loggingConfig?.validate(name: "\(name).loggingConfig")
            try self.validate(self.schemaHandlerPackage, name: "schemaHandlerPackage", parent: name, max: 4096)
            try self.validate(self.schemaHandlerPackage, name: "schemaHandlerPackage", parent: name, min: 1)
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case executionRoleArn = "ExecutionRoleArn"
            case loggingConfig = "LoggingConfig"
            case schemaHandlerPackage = "SchemaHandlerPackage"
            case type = "Type"
            case typeName = "TypeName"
        }
    }

    public struct RegisterTypeOutput: AWSDecodableShape {
        /// The identifier for this registration request. Use this registration token when calling DescribeTypeRegistration, which returns information about the status and IDs of the extension registration.
        public let registrationToken: String?

        @inlinable
        public init(registrationToken: String? = nil) {
            self.registrationToken = registrationToken
        }

        private enum CodingKeys: String, CodingKey {
            case registrationToken = "RegistrationToken"
        }
    }

    public struct RequiredActivatedType: AWSDecodableShape {
        /// The type name of the public extension. If you specified a TypeNameAlias when enabling the extension in this account and Region, CloudFormation treats that alias as the extension's type name within the account and Region, not the type name of the public extension. For more information, see Use aliases to refer to extensions in the CloudFormation User Guide.
        public let originalTypeName: String?
        /// The publisher ID of the extension publisher.
        public let publisherId: String?
        /// A list of the major versions of the extension type that the macro supports.
        @OptionalCustomCoding<StandardArrayCoder<Int>>
        public var supportedMajorVersions: [Int]?
        /// An alias assigned to the public extension, in this account and Region. If you specify an alias for the extension, CloudFormation treats the alias as the extension type name within this account and Region. You must use the alias to refer to the extension in your templates, API calls, and CloudFormation console.
        public let typeNameAlias: String?

        @inlinable
        public init(originalTypeName: String? = nil, publisherId: String? = nil, supportedMajorVersions: [Int]? = nil, typeNameAlias: String? = nil) {
            self.originalTypeName = originalTypeName
            self.publisherId = publisherId
            self.supportedMajorVersions = supportedMajorVersions
            self.typeNameAlias = typeNameAlias
        }

        private enum CodingKeys: String, CodingKey {
            case originalTypeName = "OriginalTypeName"
            case publisherId = "PublisherId"
            case supportedMajorVersions = "SupportedMajorVersions"
            case typeNameAlias = "TypeNameAlias"
        }
    }

    public struct ResourceChange: AWSDecodableShape {
        /// The action that CloudFormation takes on the resource, such as Add (adds a new resource), Modify (changes a resource), Remove (deletes a resource), Import (imports a resource), or Dynamic (exact action for the resource can't be determined).
        public let action: ChangeAction?
        /// An encoded JSON string that contains the context of the resource after the change is executed.
        public let afterContext: String?
        /// An encoded JSON string that contains the context of the resource before the change is executed.
        public let beforeContext: String?
        /// The change set ID of the nested change set.
        public let changeSetId: String?
        /// For the Modify action, a list of ResourceChangeDetail structures that describes the changes that CloudFormation will make to the resource.
        @OptionalCustomCoding<StandardArrayCoder<ResourceChangeDetail>>
        public var details: [ResourceChangeDetail]?
        /// The resource's logical ID, which is defined in the stack's template.
        public let logicalResourceId: String?
        /// Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
        public let moduleInfo: ModuleInfo?
        /// The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
        public let physicalResourceId: String?
        /// The action that will be taken on the physical resource when the change set is executed.    Delete The resource will be deleted.    Retain The resource will be retained.    Snapshot The resource will have a snapshot taken.    ReplaceAndDelete The resource will be replaced and then deleted.    ReplaceAndRetain The resource will be replaced and then retained.    ReplaceAndSnapshot The resource will be replaced and then have a snapshot taken.
        public let policyAction: PolicyAction?
        /// For the Modify action, indicates whether CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the RequiresRecreation property in the ResourceTargetDefinition structure. For example, if the RequiresRecreation field is Always and the Evaluation field is Static, Replacement is True. If the RequiresRecreation field is Always and the Evaluation field is Dynamic, Replacement is Conditional. If you have multiple changes with different RequiresRecreation values, the Replacement value depends on the change with the most impact. A RequiresRecreation value of Always has the most impact, followed by Conditional, and then Never.
        public let replacement: Replacement?
        /// The type of CloudFormation resource, such as AWS::S3::Bucket.
        public let resourceType: String?
        /// For the Modify action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.
        @OptionalCustomCoding<StandardArrayCoder<ResourceAttribute>>
        public var scope: [ResourceAttribute]?

        @inlinable
        public init(action: ChangeAction? = nil, afterContext: String? = nil, beforeContext: String? = nil, changeSetId: String? = nil, details: [ResourceChangeDetail]? = nil, logicalResourceId: String? = nil, moduleInfo: ModuleInfo? = nil, physicalResourceId: String? = nil, policyAction: PolicyAction? = nil, replacement: Replacement? = nil, resourceType: String? = nil, scope: [ResourceAttribute]? = nil) {
            self.action = action
            self.afterContext = afterContext
            self.beforeContext = beforeContext
            self.changeSetId = changeSetId
            self.details = details
            self.logicalResourceId = logicalResourceId
            self.moduleInfo = moduleInfo
            self.physicalResourceId = physicalResourceId
            self.policyAction = policyAction
            self.replacement = replacement
            self.resourceType = resourceType
            self.scope = scope
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case afterContext = "AfterContext"
            case beforeContext = "BeforeContext"
            case changeSetId = "ChangeSetId"
            case details = "Details"
            case logicalResourceId = "LogicalResourceId"
            case moduleInfo = "ModuleInfo"
            case physicalResourceId = "PhysicalResourceId"
            case policyAction = "PolicyAction"
            case replacement = "Replacement"
            case resourceType = "ResourceType"
            case scope = "Scope"
        }
    }

    public struct ResourceChangeDetail: AWSDecodableShape {
        /// The identity of the entity that triggered this change. This entity is a member of the group that's specified by the ChangeSource field. For example, if you modified the value of the KeyPairName parameter, the CausingEntity is the name of the parameter (KeyPairName). If the ChangeSource value is DirectModification, no value is given for CausingEntity.
        public let causingEntity: String?
        /// The group to which the CausingEntity value belongs. There are five entity groups:    ResourceReference entities are Ref intrinsic functions that refer to resources in the template, such as { "Ref" : "MyEC2InstanceResource" }.    ParameterReference entities are Ref intrinsic functions that get template parameter values, such as { "Ref" : "MyPasswordParameter" }.    ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }.    DirectModification entities are changes that are made directly to the template.    Automatic entities are AWS::CloudFormation::Stack resource types, which are also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack resource, CloudFormation sets the ChangeSource to Automatic because the nested stack's template might have changed. Changes to a nested stack's template aren't visible to CloudFormation until you run an update on the parent stack.
        public let changeSource: ChangeSource?
        /// Indicates whether CloudFormation can determine the target value, and whether the target value will change before you execute a change set. For Static evaluations, CloudFormation can determine that the target value will change, and its value. For example, if you directly modify the InstanceType property of an EC2 instance, CloudFormation knows that this property value will change, and its value, so this is a Static evaluation. For Dynamic evaluations, can't determine the target value because it depends on the result of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when the stack is updated. For example, if your template includes a reference to a resource that's conditionally recreated, the value of the reference (the physical ID of the resource) might change, depending on if the resource is recreated. If the resource is recreated, it will have a new physical ID, so all references to that resource will also be updated.
        public let evaluation: EvaluationType?
        /// A ResourceTargetDefinition structure that describes the field that CloudFormation will change and whether the resource will be recreated.
        public let target: ResourceTargetDefinition?

        @inlinable
        public init(causingEntity: String? = nil, changeSource: ChangeSource? = nil, evaluation: EvaluationType? = nil, target: ResourceTargetDefinition? = nil) {
            self.causingEntity = causingEntity
            self.changeSource = changeSource
            self.evaluation = evaluation
            self.target = target
        }

        private enum CodingKeys: String, CodingKey {
            case causingEntity = "CausingEntity"
            case changeSource = "ChangeSource"
            case evaluation = "Evaluation"
            case target = "Target"
        }
    }

    public struct ResourceDefinition: AWSEncodableShape {
        /// The logical resource id for this resource in the generated template.
        public let logicalResourceId: String?
        /// A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be "TableName": "MyDDBTable". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide.
        @OptionalCustomCoding<StandardDictionaryCoder<String, String>>
        public var resourceIdentifier: [String: String]?
        /// The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection in the CloudFormation User Guide
        public let resourceType: String?

        @inlinable
        public init(logicalResourceId: String? = nil, resourceIdentifier: [String: String]? = nil, resourceType: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.resourceIdentifier = resourceIdentifier
            self.resourceType = resourceType
        }

        public func validate(name: String) throws {
            try self.resourceIdentifier?.forEach {
                try validate($0.key, name: "resourceIdentifier.key", parent: name, max: 2048)
                try validate($0.key, name: "resourceIdentifier.key", parent: name, min: 1)
                try validate($0.value, name: "resourceIdentifier[\"\($0.key)\"]", parent: name, max: 2048)
                try validate($0.value, name: "resourceIdentifier[\"\($0.key)\"]", parent: name, min: 1)
            }
            try self.validate(self.resourceIdentifier, name: "resourceIdentifier", parent: name, max: 256)
            try self.validate(self.resourceIdentifier, name: "resourceIdentifier", parent: name, min: 1)
            try self.validate(self.resourceType, name: "resourceType", parent: name, max: 256)
            try self.validate(self.resourceType, name: "resourceType", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case resourceIdentifier = "ResourceIdentifier"
            case resourceType = "ResourceType"
        }
    }

    public struct ResourceDetail: AWSDecodableShape {
        /// The logical id for this resource in the final generated template.
        public let logicalResourceId: String?
        /// A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be "TableName": "MyDDBTable". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide.
        @OptionalCustomCoding<StandardDictionaryCoder<String, String>>
        public var resourceIdentifier: [String: String]?
        /// Status of the processing of a resource in a generated template.    InProgress    The resource processing is still in progress.    Complete    The resource processing is complete.    Pending    The resource processing is pending.    Failed    The resource processing has failed.
        public let resourceStatus: GeneratedTemplateResourceStatus?
        /// The reason for the resource detail, providing more information if a failure happened.
        public let resourceStatusReason: String?
        /// The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User Guide
        public let resourceType: String?
        /// The warnings generated for this resource.
        @OptionalCustomCoding<StandardArrayCoder<WarningDetail>>
        public var warnings: [WarningDetail]?

        @inlinable
        public init(logicalResourceId: String? = nil, resourceIdentifier: [String: String]? = nil, resourceStatus: GeneratedTemplateResourceStatus? = nil, resourceStatusReason: String? = nil, resourceType: String? = nil, warnings: [WarningDetail]? = nil) {
            self.logicalResourceId = logicalResourceId
            self.resourceIdentifier = resourceIdentifier
            self.resourceStatus = resourceStatus
            self.resourceStatusReason = resourceStatusReason
            self.resourceType = resourceType
            self.warnings = warnings
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case resourceIdentifier = "ResourceIdentifier"
            case resourceStatus = "ResourceStatus"
            case resourceStatusReason = "ResourceStatusReason"
            case resourceType = "ResourceType"
            case warnings = "Warnings"
        }
    }

    public struct ResourceIdentifierSummary: AWSDecodableShape {
        /// The logical IDs of the target resources of the specified ResourceType, as defined in the import template.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var logicalResourceIds: [String]?
        /// The resource properties you can provide during the import to identify your target resources. For example, BucketName is a possible identifier property for AWS::S3::Bucket resources.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourceIdentifiers: [String]?
        /// The template resource type of the target resources, such as AWS::S3::Bucket.
        public let resourceType: String?

        @inlinable
        public init(logicalResourceIds: [String]? = nil, resourceIdentifiers: [String]? = nil, resourceType: String? = nil) {
            self.logicalResourceIds = logicalResourceIds
            self.resourceIdentifiers = resourceIdentifiers
            self.resourceType = resourceType
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceIds = "LogicalResourceIds"
            case resourceIdentifiers = "ResourceIdentifiers"
            case resourceType = "ResourceType"
        }
    }

    public struct ResourceLocation: AWSEncodableShape & AWSDecodableShape {
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// The name associated with the stack.
        public let stackName: String?

        @inlinable
        public init(logicalResourceId: String? = nil, stackName: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.stackName = stackName
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case stackName = "StackName"
        }
    }

    public struct ResourceMapping: AWSEncodableShape & AWSDecodableShape {
        /// The destination stack StackName and LogicalResourceId for the resource being refactored.
        public let destination: ResourceLocation?
        /// The source stack StackName and LogicalResourceId for the resource being refactored.
        public let source: ResourceLocation?

        @inlinable
        public init(destination: ResourceLocation? = nil, source: ResourceLocation? = nil) {
            self.destination = destination
            self.source = source
        }

        private enum CodingKeys: String, CodingKey {
            case destination = "Destination"
            case source = "Source"
        }
    }

    public struct ResourceScanSummary: AWSDecodableShape {
        /// The time that the resource scan was finished.
        public let endTime: Date?
        /// The percentage of the resource scan that has been completed.
        public let percentageCompleted: Double?
        /// The Amazon Resource Name (ARN) of the resource scan.
        public let resourceScanId: String?
        /// The scan type that has been completed.
        public let scanType: ScanType?
        /// The time that the resource scan was started.
        public let startTime: Date?
        /// Status of the resource scan.    IN_PROGRESS    The resource scan is still in progress.    COMPLETE    The resource scan is complete.    EXPIRED    The resource scan has expired.    FAILED    The resource scan has failed.
        public let status: ResourceScanStatus?
        /// The reason for the resource scan status, providing more information if a failure happened.
        public let statusReason: String?

        @inlinable
        public init(endTime: Date? = nil, percentageCompleted: Double? = nil, resourceScanId: String? = nil, scanType: ScanType? = nil, startTime: Date? = nil, status: ResourceScanStatus? = nil, statusReason: String? = nil) {
            self.endTime = endTime
            self.percentageCompleted = percentageCompleted
            self.resourceScanId = resourceScanId
            self.scanType = scanType
            self.startTime = startTime
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case endTime = "EndTime"
            case percentageCompleted = "PercentageCompleted"
            case resourceScanId = "ResourceScanId"
            case scanType = "ScanType"
            case startTime = "StartTime"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct ResourceTargetDefinition: AWSDecodableShape {
        /// The value of the property after the change is executed. Large values can be truncated.
        public let afterValue: String?
        /// Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.
        public let attribute: ResourceAttribute?
        /// The type of change to be made to the property if the change is executed.    Add The item will be added.    Remove The item will be removed.    Modify The item will be modified.
        public let attributeChangeType: AttributeChangeType?
        /// The value of the property before the change is executed. Large values can be truncated.
        public let beforeValue: String?
        /// If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.
        public let name: String?
        /// The property path of the property.
        public let path: String?
        /// If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always, or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the Amazon Web Services resource and property types reference in the CloudFormation User Guide.
        public let requiresRecreation: RequiresRecreation?

        @inlinable
        public init(afterValue: String? = nil, attribute: ResourceAttribute? = nil, attributeChangeType: AttributeChangeType? = nil, beforeValue: String? = nil, name: String? = nil, path: String? = nil, requiresRecreation: RequiresRecreation? = nil) {
            self.afterValue = afterValue
            self.attribute = attribute
            self.attributeChangeType = attributeChangeType
            self.beforeValue = beforeValue
            self.name = name
            self.path = path
            self.requiresRecreation = requiresRecreation
        }

        private enum CodingKeys: String, CodingKey {
            case afterValue = "AfterValue"
            case attribute = "Attribute"
            case attributeChangeType = "AttributeChangeType"
            case beforeValue = "BeforeValue"
            case name = "Name"
            case path = "Path"
            case requiresRecreation = "RequiresRecreation"
        }
    }

    public struct ResourceToImport: AWSEncodableShape {
        /// The logical ID of the target resource as specified in the template.
        public let logicalResourceId: String?
        /// A key-value pair that identifies the target resource. The key is an identifier property (for example, BucketName for AWS::S3::Bucket resources) and the value is the actual property value (for example, MyS3Bucket).
        @OptionalCustomCoding<StandardDictionaryCoder<String, String>>
        public var resourceIdentifier: [String: String]?
        /// The type of resource to import into your stack, such as AWS::S3::Bucket. For a list of supported resource types, see Resource type support for imports and drift detection in the CloudFormation User Guide.
        public let resourceType: String?

        @inlinable
        public init(logicalResourceId: String? = nil, resourceIdentifier: [String: String]? = nil, resourceType: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.resourceIdentifier = resourceIdentifier
            self.resourceType = resourceType
        }

        public func validate(name: String) throws {
            try self.resourceIdentifier?.forEach {
                try validate($0.key, name: "resourceIdentifier.key", parent: name, max: 2048)
                try validate($0.key, name: "resourceIdentifier.key", parent: name, min: 1)
                try validate($0.value, name: "resourceIdentifier[\"\($0.key)\"]", parent: name, max: 2048)
                try validate($0.value, name: "resourceIdentifier[\"\($0.key)\"]", parent: name, min: 1)
            }
            try self.validate(self.resourceIdentifier, name: "resourceIdentifier", parent: name, max: 256)
            try self.validate(self.resourceIdentifier, name: "resourceIdentifier", parent: name, min: 1)
            try self.validate(self.resourceType, name: "resourceType", parent: name, max: 256)
            try self.validate(self.resourceType, name: "resourceType", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case resourceIdentifier = "ResourceIdentifier"
            case resourceType = "ResourceType"
        }
    }

    public struct RollbackConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// The amount of time, in minutes, during which CloudFormation should monitor all the rollback triggers after the stack creation or update operation deploys all necessary resources. The default is 0 minutes. If you specify a monitoring period but don't specify any rollback triggers, CloudFormation still waits the specified period of time before cleaning up old resources after update operations. You can use this monitoring period to perform any manual stack validation desired, and manually cancel the stack creation or update (using CancelUpdateStack, for example) as necessary. If you specify 0 for this parameter, CloudFormation still monitors the specified rollback triggers during stack creation and update operations. Then, for update operations, it begins disposing of old resources immediately once the operation completes.
        public let monitoringTimeInMinutes: Int?
        /// The triggers to monitor during stack creation or update actions. By default, CloudFormation saves the rollback triggers specified for a stack and applies them to any subsequent update operations for the stack, unless you specify otherwise. If you do specify rollback triggers for this parameter, those triggers replace any list of triggers previously specified for the stack. This means:   To use the rollback triggers previously specified for this stack, if any, don't specify this parameter.   To specify new or updated rollback triggers, you must specify all the triggers that you want used for this stack, even triggers you've specified before (for example, when creating the stack or during a previous stack update). Any triggers that you don't include in the updated list of triggers are no longer applied to the stack.   To remove all currently specified triggers, specify an empty list for this parameter.   If a specified trigger is missing, the entire stack operation fails and is rolled back.
        @OptionalCustomCoding<StandardArrayCoder<RollbackTrigger>>
        public var rollbackTriggers: [RollbackTrigger]?

        @inlinable
        public init(monitoringTimeInMinutes: Int? = nil, rollbackTriggers: [RollbackTrigger]? = nil) {
            self.monitoringTimeInMinutes = monitoringTimeInMinutes
            self.rollbackTriggers = rollbackTriggers
        }

        public func validate(name: String) throws {
            try self.validate(self.monitoringTimeInMinutes, name: "monitoringTimeInMinutes", parent: name, max: 180)
            try self.validate(self.monitoringTimeInMinutes, name: "monitoringTimeInMinutes", parent: name, min: 0)
            try self.validate(self.rollbackTriggers, name: "rollbackTriggers", parent: name, max: 5)
        }

        private enum CodingKeys: String, CodingKey {
            case monitoringTimeInMinutes = "MonitoringTimeInMinutes"
            case rollbackTriggers = "RollbackTriggers"
        }
    }

    public struct RollbackStackInput: AWSEncodableShape {
        /// A unique identifier for this RollbackStack request.
        public let clientRequestToken: String?
        /// When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
        public let retainExceptOnCreate: Bool?
        /// The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to rollback the stack.
        public let roleARN: String?
        /// The name that's associated with the stack.
        public let stackName: String?

        @inlinable
        public init(clientRequestToken: String? = nil, retainExceptOnCreate: Bool? = nil, roleARN: String? = nil, stackName: String? = nil) {
            self.clientRequestToken = clientRequestToken
            self.retainExceptOnCreate = retainExceptOnCreate
            self.roleARN = roleARN
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.roleARN, name: "roleARN", parent: name, max: 2048)
            try self.validate(self.roleARN, name: "roleARN", parent: name, min: 20)
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case retainExceptOnCreate = "RetainExceptOnCreate"
            case roleARN = "RoleARN"
            case stackName = "StackName"
        }
    }

    public struct RollbackStackOutput: AWSDecodableShape {
        /// Unique identifier of the stack.
        public let stackId: String?

        @inlinable
        public init(stackId: String? = nil) {
            self.stackId = stackId
        }

        private enum CodingKeys: String, CodingKey {
            case stackId = "StackId"
        }
    }

    public struct RollbackTrigger: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the rollback trigger. If a specified trigger is missing, the entire stack operation fails and is rolled back.
        public let arn: String?
        /// The resource type of the rollback trigger. Specify either AWS::CloudWatch::Alarm or AWS::CloudWatch::CompositeAlarm resource types.
        public let type: String?

        @inlinable
        public init(arn: String? = nil, type: String? = nil) {
            self.arn = arn
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case type = "Type"
        }
    }

    public struct ScanFilter: AWSEncodableShape & AWSDecodableShape {
        /// An array of strings where each string represents an Amazon Web Services resource type you want to scan. Each string defines the resource type using the format AWS::ServiceName::ResourceType, for example, AWS::DynamoDB::Table. For the full list of supported resource types, see the Resource type support table in the CloudFormation User Guide. To scan all resource types within a service, you can use a wildcard, represented by an asterisk (*). You can place an asterisk at only the end of the string, for example, AWS::S3::*.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var types: [String]?

        @inlinable
        public init(types: [String]? = nil) {
            self.types = types
        }

        public func validate(name: String) throws {
            try self.types?.forEach {
                try validate($0, name: "types[]", parent: name, max: 100)
                try validate($0, name: "types[]", parent: name, min: 1)
            }
            try self.validate(self.types, name: "types", parent: name, max: 100)
        }

        private enum CodingKeys: String, CodingKey {
            case types = "Types"
        }
    }

    public struct ScannedResource: AWSDecodableShape {
        /// If true, the resource is managed by a CloudFormation stack.
        public let managedByStack: Bool?
        /// A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be "TableName": "MyDDBTable". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide.
        @OptionalCustomCoding<StandardDictionaryCoder<String, String>>
        public var resourceIdentifier: [String: String]?
        /// The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User Guide
        public let resourceType: String?

        @inlinable
        public init(managedByStack: Bool? = nil, resourceIdentifier: [String: String]? = nil, resourceType: String? = nil) {
            self.managedByStack = managedByStack
            self.resourceIdentifier = resourceIdentifier
            self.resourceType = resourceType
        }

        private enum CodingKeys: String, CodingKey {
            case managedByStack = "ManagedByStack"
            case resourceIdentifier = "ResourceIdentifier"
            case resourceType = "ResourceType"
        }
    }

    public struct ScannedResourceIdentifier: AWSEncodableShape {
        /// A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be "TableName": "MyDDBTable". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide.
        @OptionalCustomCoding<StandardDictionaryCoder<String, String>>
        public var resourceIdentifier: [String: String]?
        /// The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User Guide.
        public let resourceType: String?

        @inlinable
        public init(resourceIdentifier: [String: String]? = nil, resourceType: String? = nil) {
            self.resourceIdentifier = resourceIdentifier
            self.resourceType = resourceType
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceType, name: "resourceType", parent: name, max: 256)
            try self.validate(self.resourceType, name: "resourceType", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case resourceIdentifier = "ResourceIdentifier"
            case resourceType = "ResourceType"
        }
    }

    public struct SetStackPolicyInput: AWSEncodableShape {
        /// The name or unique stack ID that you want to associate a policy with.
        public let stackName: String?
        /// Structure that contains the stack policy body. For more information, see Prevent updates to stack resources in the CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
        public let stackPolicyBody: String?
        /// Location of a file that contains the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an Amazon S3 bucket in the same Amazon Web Services Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
        public let stackPolicyURL: String?

        @inlinable
        public init(stackName: String? = nil, stackPolicyBody: String? = nil, stackPolicyURL: String? = nil) {
            self.stackName = stackName
            self.stackPolicyBody = stackPolicyBody
            self.stackPolicyURL = stackPolicyURL
        }

        public func validate(name: String) throws {
            try self.validate(self.stackPolicyBody, name: "stackPolicyBody", parent: name, max: 16384)
            try self.validate(self.stackPolicyBody, name: "stackPolicyBody", parent: name, min: 1)
            try self.validate(self.stackPolicyURL, name: "stackPolicyURL", parent: name, max: 5120)
            try self.validate(self.stackPolicyURL, name: "stackPolicyURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case stackName = "StackName"
            case stackPolicyBody = "StackPolicyBody"
            case stackPolicyURL = "StackPolicyURL"
        }
    }

    public struct SetTypeConfigurationInput: AWSEncodableShape {
        /// The configuration data for the extension in this account and Region. The configuration data must be formatted as JSON and validate against the extension's schema returned in the Schema response element of DescribeType.
        public let configuration: String?
        /// An alias by which to refer to this extension configuration data. Conditional: Specifying a configuration alias is required when setting a configuration for a resource type extension.
        public let configurationAlias: String?
        /// The type of extension. Conditional: You must specify ConfigurationArn, or Type and TypeName.
        public let type: ThirdPartyType?
        /// The Amazon Resource Name (ARN) for the extension in this account and Region. For public extensions, this will be the ARN assigned when you call the ActivateType API operation in this account and Region. For private extensions, this will be the ARN assigned when you call the RegisterType API operation in this account and Region. Do not include the extension versions suffix at the end of the ARN. You can set the configuration for an extension, but not for a specific extension version.
        public let typeArn: String?
        /// The name of the extension. Conditional: You must specify ConfigurationArn, or Type and TypeName.
        public let typeName: String?

        @inlinable
        public init(configuration: String? = nil, configurationAlias: String? = nil, type: ThirdPartyType? = nil, typeArn: String? = nil, typeName: String? = nil) {
            self.configuration = configuration
            self.configurationAlias = configurationAlias
            self.type = type
            self.typeArn = typeArn
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.configuration, name: "configuration", parent: name, max: 204800)
            try self.validate(self.configuration, name: "configuration", parent: name, min: 1)
            try self.validate(self.configuration, name: "configuration", parent: name, pattern: "^[\\s\\S]+$")
            try self.validate(self.configurationAlias, name: "configurationAlias", parent: name, max: 256)
            try self.validate(self.configurationAlias, name: "configurationAlias", parent: name, min: 1)
            try self.validate(self.configurationAlias, name: "configurationAlias", parent: name, pattern: "^[a-zA-Z0-9]{1,256}$")
            try self.validate(self.typeArn, name: "typeArn", parent: name, max: 1024)
            try self.validate(self.typeArn, name: "typeArn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case configuration = "Configuration"
            case configurationAlias = "ConfigurationAlias"
            case type = "Type"
            case typeArn = "TypeArn"
            case typeName = "TypeName"
        }
    }

    public struct SetTypeConfigurationOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) for the configuration data in this account and Region. Conditional: You must specify ConfigurationArn, or Type and TypeName.
        public let configurationArn: String?

        @inlinable
        public init(configurationArn: String? = nil) {
            self.configurationArn = configurationArn
        }

        private enum CodingKeys: String, CodingKey {
            case configurationArn = "ConfigurationArn"
        }
    }

    public struct SetTypeDefaultVersionInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the extension for which you want version summary information. Conditional: You must specify either TypeName and Type, or Arn.
        public let arn: String?
        /// The kind of extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let type: RegistryType?
        /// The name of the extension. Conditional: You must specify either TypeName and Type, or Arn.
        public let typeName: String?
        /// The ID of a specific version of the extension. The version ID is the value at the end of the Amazon Resource Name (ARN) assigned to the extension version when it is registered.
        public let versionId: String?

        @inlinable
        public init(arn: String? = nil, type: RegistryType? = nil, typeName: String? = nil, versionId: String? = nil) {
            self.arn = arn
            self.type = type
            self.typeName = typeName
            self.versionId = versionId
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:[0-9]{12}:type/.+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
            try self.validate(self.versionId, name: "versionId", parent: name, max: 128)
            try self.validate(self.versionId, name: "versionId", parent: name, min: 1)
            try self.validate(self.versionId, name: "versionId", parent: name, pattern: "^[A-Za-z0-9-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case type = "Type"
            case typeName = "TypeName"
            case versionId = "VersionId"
        }
    }

    public struct SetTypeDefaultVersionOutput: AWSDecodableShape {
        public init() {}
    }

    public struct SignalResourceInput: AWSEncodableShape {
        /// The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.
        public let logicalResourceId: String?
        /// The stack name or unique stack ID that includes the resource that you want to signal.
        public let stackName: String?
        /// The status of the signal, which is either success or failure. A failure signal causes CloudFormation to immediately fail the stack creation or update.
        public let status: ResourceSignalStatus?
        /// A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.
        public let uniqueId: String?

        @inlinable
        public init(logicalResourceId: String? = nil, stackName: String? = nil, status: ResourceSignalStatus? = nil, uniqueId: String? = nil) {
            self.logicalResourceId = logicalResourceId
            self.stackName = stackName
            self.status = status
            self.uniqueId = uniqueId
        }

        public func validate(name: String) throws {
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
            try self.validate(self.uniqueId, name: "uniqueId", parent: name, max: 64)
            try self.validate(self.uniqueId, name: "uniqueId", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case stackName = "StackName"
            case status = "Status"
            case uniqueId = "UniqueId"
        }
    }

    public struct Stack: AWSDecodableShape {
        /// The capabilities allowed in the stack.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// The unique ID of the change set.
        public let changeSetId: String?
        /// The time at which the stack was created.
        public let creationTime: Date?
        /// Specifies the deletion mode for the stack. Possible values are:    STANDARD - Use the standard behavior. Specifying this value is the same as not specifying this parameter.    FORCE_DELETE_STACK - Delete the stack if it's stuck in a DELETE_FAILED state due to resource deletion failure.
        public let deletionMode: DeletionMode?
        /// The time the stack was deleted.
        public let deletionTime: Date?
        /// A user-defined description associated with the stack.
        public let description: String?
        /// The detailed status of the resource or stack. If CONFIGURATION_COMPLETE is present, the resource or resource configuration phase has completed and the stabilization of the resources is in progress. The StackSets CONFIGURATION_COMPLETE when all of the resources in the stack have reached that event. For more information, see Understand CloudFormation stack creation events in the CloudFormation User Guide.
        public let detailedStatus: DetailedStatus?
        /// Boolean to enable or disable rollback on stack creation failures:    true: disable rollback.    false: enable rollback.
        public let disableRollback: Bool?
        /// Information about whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
        public let driftInformation: StackDriftInformation?
        /// Whether termination protection is enabled for the stack. For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack. For more information, see Protect a CloudFormation stack from being deleted in the CloudFormation User Guide.
        public let enableTerminationProtection: Bool?
        /// The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
        public let lastUpdatedTime: Date?
        /// Amazon SNS topic Amazon Resource Names (ARNs) to which stack related events are published.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var notificationARNs: [String]?
        /// A list of output structures.
        @OptionalCustomCoding<StandardArrayCoder<Output>>
        public var outputs: [Output]?
        /// A list of Parameter structures.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// For nested stacks, the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. For more information, see Nested stacks in the CloudFormation User Guide.
        public let parentId: String?
        /// When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
        public let retainExceptOnCreate: Bool?
        /// The Amazon Resource Name (ARN) of an IAM role that's associated with the stack. During a stack operation, CloudFormation uses this role's credentials to make calls on your behalf.
        public let roleARN: String?
        /// The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
        public let rollbackConfiguration: RollbackConfiguration?
        /// For nested stacks, the stack ID of the top-level stack to which the nested stack ultimately belongs. For more information, see Nested stacks in the CloudFormation User Guide.
        public let rootId: String?
        /// Unique identifier of the stack.
        public let stackId: String?
        /// The name associated with the stack.
        public let stackName: String?
        /// Current status of the stack.
        public let stackStatus: StackStatus?
        /// Success/failure message associated with the stack status.
        public let stackStatusReason: String?
        /// A list of Tags that specify information about the stack.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// The amount of time within which stack creation should complete.
        public let timeoutInMinutes: Int?

        @inlinable
        public init(capabilities: [Capability]? = nil, changeSetId: String? = nil, creationTime: Date? = nil, deletionMode: DeletionMode? = nil, deletionTime: Date? = nil, description: String? = nil, detailedStatus: DetailedStatus? = nil, disableRollback: Bool? = nil, driftInformation: StackDriftInformation? = nil, enableTerminationProtection: Bool? = nil, lastUpdatedTime: Date? = nil, notificationARNs: [String]? = nil, outputs: [Output]? = nil, parameters: [Parameter]? = nil, parentId: String? = nil, retainExceptOnCreate: Bool? = nil, roleARN: String? = nil, rollbackConfiguration: RollbackConfiguration? = nil, rootId: String? = nil, stackId: String? = nil, stackName: String? = nil, stackStatus: StackStatus? = nil, stackStatusReason: String? = nil, tags: [Tag]? = nil, timeoutInMinutes: Int? = nil) {
            self.capabilities = capabilities
            self.changeSetId = changeSetId
            self.creationTime = creationTime
            self.deletionMode = deletionMode
            self.deletionTime = deletionTime
            self.description = description
            self.detailedStatus = detailedStatus
            self.disableRollback = disableRollback
            self.driftInformation = driftInformation
            self.enableTerminationProtection = enableTerminationProtection
            self.lastUpdatedTime = lastUpdatedTime
            self.notificationARNs = notificationARNs
            self.outputs = outputs
            self.parameters = parameters
            self.parentId = parentId
            self.retainExceptOnCreate = retainExceptOnCreate
            self.roleARN = roleARN
            self.rollbackConfiguration = rollbackConfiguration
            self.rootId = rootId
            self.stackId = stackId
            self.stackName = stackName
            self.stackStatus = stackStatus
            self.stackStatusReason = stackStatusReason
            self.tags = tags
            self.timeoutInMinutes = timeoutInMinutes
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case changeSetId = "ChangeSetId"
            case creationTime = "CreationTime"
            case deletionMode = "DeletionMode"
            case deletionTime = "DeletionTime"
            case description = "Description"
            case detailedStatus = "DetailedStatus"
            case disableRollback = "DisableRollback"
            case driftInformation = "DriftInformation"
            case enableTerminationProtection = "EnableTerminationProtection"
            case lastUpdatedTime = "LastUpdatedTime"
            case notificationARNs = "NotificationARNs"
            case outputs = "Outputs"
            case parameters = "Parameters"
            case parentId = "ParentId"
            case retainExceptOnCreate = "RetainExceptOnCreate"
            case roleARN = "RoleARN"
            case rollbackConfiguration = "RollbackConfiguration"
            case rootId = "RootId"
            case stackId = "StackId"
            case stackName = "StackName"
            case stackStatus = "StackStatus"
            case stackStatusReason = "StackStatusReason"
            case tags = "Tags"
            case timeoutInMinutes = "TimeoutInMinutes"
        }
    }

    public struct StackDefinition: AWSEncodableShape {
        /// The name associated with the stack.
        public let stackName: String?
        /// The file path for the stack template file.
        public let templateBody: String?
        /// The desired final state of the stack template.
        public let templateURL: String?

        @inlinable
        public init(stackName: String? = nil, templateBody: String? = nil, templateURL: String? = nil) {
            self.stackName = stackName
            self.templateBody = templateBody
            self.templateURL = templateURL
        }

        public func validate(name: String) throws {
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case stackName = "StackName"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
        }
    }

    public struct StackDriftInformation: AWSDecodableShape {
        /// Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.
        public let lastCheckTimestamp: Date?
        /// Status of the stack's actual configuration compared to its expected template configuration.    DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.    NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.    IN_SYNC: The stack's actual configuration matches its expected template configuration.    UNKNOWN: CloudFormation could not run drift detection for a resource in the stack.
        public let stackDriftStatus: StackDriftStatus?

        @inlinable
        public init(lastCheckTimestamp: Date? = nil, stackDriftStatus: StackDriftStatus? = nil) {
            self.lastCheckTimestamp = lastCheckTimestamp
            self.stackDriftStatus = stackDriftStatus
        }

        private enum CodingKeys: String, CodingKey {
            case lastCheckTimestamp = "LastCheckTimestamp"
            case stackDriftStatus = "StackDriftStatus"
        }
    }

    public struct StackDriftInformationSummary: AWSDecodableShape {
        /// Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.
        public let lastCheckTimestamp: Date?
        /// Status of the stack's actual configuration compared to its expected template configuration.    DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.    NOT_CHECKED: CloudFormation hasn't checked if the stack differs from its expected template configuration.    IN_SYNC: The stack's actual configuration matches its expected template configuration.    UNKNOWN: CloudFormation could not run drift detection for a resource in the stack.
        public let stackDriftStatus: StackDriftStatus?

        @inlinable
        public init(lastCheckTimestamp: Date? = nil, stackDriftStatus: StackDriftStatus? = nil) {
            self.lastCheckTimestamp = lastCheckTimestamp
            self.stackDriftStatus = stackDriftStatus
        }

        private enum CodingKeys: String, CodingKey {
            case lastCheckTimestamp = "LastCheckTimestamp"
            case stackDriftStatus = "StackDriftStatus"
        }
    }

    public struct StackEvent: AWSDecodableShape {
        /// The token passed to the operation that generated this event. All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
        public let clientRequestToken: String?
        /// An optional field that contains information about the detailed status of the stack event.    CONFIGURATION_COMPLETE - all of the resources in the stack have reached that event. For more information, see Understand CloudFormation stack creation events in the CloudFormation User Guide.      VALIDATION_FAILED - template validation failed because of invalid properties in the template. The ResourceStatusReason field shows what properties are defined incorrectly.
        public let detailedStatus: DetailedStatus?
        /// The unique identifier of this event.
        public let eventId: String?
        /// Specify the Hook failure mode for non-compliant resources in the followings ways.    FAIL Stops provisioning resources.    WARN Allows provisioning to continue with a warning message.
        public let hookFailureMode: HookFailureMode?
        /// The unique identifier of the Hook invocation.
        public let hookInvocationId: String?
        /// The specific point in the provisioning process where the Hook is invoked.
        public let hookInvocationPoint: HookInvocationPoint?
        /// Provides the status of the change set Hook.
        public let hookStatus: HookStatus?
        /// Provides the reason for the Hook status.
        public let hookStatusReason: String?
        /// The name of the Hook.
        public let hookType: String?
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// The name or unique identifier associated with the physical instance of the resource.
        public let physicalResourceId: String?
        /// BLOB of the properties used to create the resource.
        public let resourceProperties: String?
        /// Current status of the resource.
        public let resourceStatus: ResourceStatus?
        /// Success/failure message associated with the resource.
        public let resourceStatusReason: String?
        /// Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
        public let resourceType: String?
        /// The unique ID name of the instance of the stack.
        public let stackId: String?
        /// The name associated with a stack.
        public let stackName: String?
        /// Time the status was updated.
        public let timestamp: Date?

        @inlinable
        public init(clientRequestToken: String? = nil, detailedStatus: DetailedStatus? = nil, eventId: String? = nil, hookFailureMode: HookFailureMode? = nil, hookInvocationId: String? = nil, hookInvocationPoint: HookInvocationPoint? = nil, hookStatus: HookStatus? = nil, hookStatusReason: String? = nil, hookType: String? = nil, logicalResourceId: String? = nil, physicalResourceId: String? = nil, resourceProperties: String? = nil, resourceStatus: ResourceStatus? = nil, resourceStatusReason: String? = nil, resourceType: String? = nil, stackId: String? = nil, stackName: String? = nil, timestamp: Date? = nil) {
            self.clientRequestToken = clientRequestToken
            self.detailedStatus = detailedStatus
            self.eventId = eventId
            self.hookFailureMode = hookFailureMode
            self.hookInvocationId = hookInvocationId
            self.hookInvocationPoint = hookInvocationPoint
            self.hookStatus = hookStatus
            self.hookStatusReason = hookStatusReason
            self.hookType = hookType
            self.logicalResourceId = logicalResourceId
            self.physicalResourceId = physicalResourceId
            self.resourceProperties = resourceProperties
            self.resourceStatus = resourceStatus
            self.resourceStatusReason = resourceStatusReason
            self.resourceType = resourceType
            self.stackId = stackId
            self.stackName = stackName
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case detailedStatus = "DetailedStatus"
            case eventId = "EventId"
            case hookFailureMode = "HookFailureMode"
            case hookInvocationId = "HookInvocationId"
            case hookInvocationPoint = "HookInvocationPoint"
            case hookStatus = "HookStatus"
            case hookStatusReason = "HookStatusReason"
            case hookType = "HookType"
            case logicalResourceId = "LogicalResourceId"
            case physicalResourceId = "PhysicalResourceId"
            case resourceProperties = "ResourceProperties"
            case resourceStatus = "ResourceStatus"
            case resourceStatusReason = "ResourceStatusReason"
            case resourceType = "ResourceType"
            case stackId = "StackId"
            case stackName = "StackName"
            case timestamp = "Timestamp"
        }
    }

    public struct StackInstance: AWSDecodableShape {
        /// [Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.
        public let account: String?
        /// Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the StackSet it belongs to.    DRIFTED: The stack differs from the expected template and parameter configuration of the StackSet it belongs to. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.    NOT_CHECKED: CloudFormation hasn't checked if the stack instance differs from its expected StackSet configuration.    IN_SYNC: The stack instance's actual configuration matches its expected StackSset configuration.    UNKNOWN: This value is reserved for future use.
        public let driftStatus: StackDriftStatus?
        /// Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL for any stack instance that drift detection hasn't yet been performed on.
        public let lastDriftCheckTimestamp: Date?
        /// The last unique ID of a StackSet operation performed on a stack instance.
        public let lastOperationId: String?
        /// [Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
        public let organizationalUnitId: String?
        /// A list of parameters from the StackSet template whose values have been overridden in this stack instance.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameterOverrides: [Parameter]?
        /// The name of the Amazon Web Services Region that the stack instance is associated with.
        public let region: String?
        /// The ID of the stack instance.
        public let stackId: String?
        /// The detailed status of the stack instance.
        public let stackInstanceStatus: StackInstanceComprehensiveStatus?
        /// The name or unique ID of the StackSet that the stack instance is associated with.
        public let stackSetId: String?
        /// The status of the stack instance, in terms of its synchronization with its associated stack set.    INOPERABLE: A DeleteStackInstances operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further UpdateStackSet operations. You might need to perform a DeleteStackInstances operation, with RetainStacks set to true, to delete the stack instance, and then delete the stack manually. INOPERABLE can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, look at the DetailedStatus member in the StackInstanceSummary member that is a peer to this Status member.    OUTDATED: The stack isn't currently up to date with the StackSet because:   The associated stack failed during a CreateStackSet or UpdateStackSet operation.   The stack was part of a CreateStackSet or UpdateStackSet operation that failed or was stopped before the stack was created or updated.      CURRENT: The stack is currently up to date with the StackSet.
        public let status: StackInstanceStatus?
        /// The explanation for the specific status code that's assigned to this stack instance.
        public let statusReason: String?

        @inlinable
        public init(account: String? = nil, driftStatus: StackDriftStatus? = nil, lastDriftCheckTimestamp: Date? = nil, lastOperationId: String? = nil, organizationalUnitId: String? = nil, parameterOverrides: [Parameter]? = nil, region: String? = nil, stackId: String? = nil, stackInstanceStatus: StackInstanceComprehensiveStatus? = nil, stackSetId: String? = nil, status: StackInstanceStatus? = nil, statusReason: String? = nil) {
            self.account = account
            self.driftStatus = driftStatus
            self.lastDriftCheckTimestamp = lastDriftCheckTimestamp
            self.lastOperationId = lastOperationId
            self.organizationalUnitId = organizationalUnitId
            self.parameterOverrides = parameterOverrides
            self.region = region
            self.stackId = stackId
            self.stackInstanceStatus = stackInstanceStatus
            self.stackSetId = stackSetId
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case account = "Account"
            case driftStatus = "DriftStatus"
            case lastDriftCheckTimestamp = "LastDriftCheckTimestamp"
            case lastOperationId = "LastOperationId"
            case organizationalUnitId = "OrganizationalUnitId"
            case parameterOverrides = "ParameterOverrides"
            case region = "Region"
            case stackId = "StackId"
            case stackInstanceStatus = "StackInstanceStatus"
            case stackSetId = "StackSetId"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct StackInstanceComprehensiveStatus: AWSDecodableShape {
        ///    CANCELLED: The operation in the specified account and Region has been canceled. This is either because a user has stopped the StackSet operation, or because the failure tolerance of the StackSet operation has been exceeded.    FAILED: The operation in the specified account and Region failed. If the StackSet operation fails in enough accounts within a Region, the failure tolerance for the StackSet operation as a whole might be exceeded.    FAILED_IMPORT: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the failure are fixed, the import operation can be retried. If enough StackSet operations fail in enough accounts within a Region, the failure tolerance for the StackSet operation as a whole might be exceeded.    INOPERABLE: A DeleteStackInstances operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further UpdateStackSet operations. You might need to perform a DeleteStackInstances operation, with RetainStacks set to true, to delete the stack instance, and then delete the stack manually.    PENDING: The operation in the specified account and Region has yet to start.    RUNNING: The operation in the specified account and Region is currently in progress.    SKIPPED_SUSPENDED_ACCOUNT: The operation in the specified account and Region has been skipped because the account was suspended at the time of the operation.    SUCCEEDED: The operation in the specified account and Region completed successfully.
        public let detailedStatus: StackInstanceDetailedStatus?

        @inlinable
        public init(detailedStatus: StackInstanceDetailedStatus? = nil) {
            self.detailedStatus = detailedStatus
        }

        private enum CodingKeys: String, CodingKey {
            case detailedStatus = "DetailedStatus"
        }
    }

    public struct StackInstanceFilter: AWSEncodableShape {
        /// The type of filter to apply.
        public let name: StackInstanceFilterName?
        /// The status to filter by.
        public let values: String?

        @inlinable
        public init(name: StackInstanceFilterName? = nil, values: String? = nil) {
            self.name = name
            self.values = values
        }

        public func validate(name: String) throws {
            try self.validate(self.values, name: "values", parent: name, max: 128)
            try self.validate(self.values, name: "values", parent: name, min: 1)
            try self.validate(self.values, name: "values", parent: name, pattern: "^\\S{1,128}$")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case values = "Values"
        }
    }

    public struct StackInstanceResourceDriftsSummary: AWSDecodableShape {
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
        public let physicalResourceId: String?
        /// Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
        @OptionalCustomCoding<StandardArrayCoder<PhysicalResourceIdContextKeyValuePair>>
        public var physicalResourceIdContext: [PhysicalResourceIdContextKeyValuePair]?
        /// Status of the actual configuration of the resource compared to its expected configuration. These will be present only for resources whose StackInstanceResourceDriftStatus is MODIFIED.
        @OptionalCustomCoding<StandardArrayCoder<PropertyDifference>>
        public var propertyDifferences: [PropertyDifference]?
        /// Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
        public let resourceType: String?
        /// The ID of the stack instance.
        public let stackId: String?
        /// The drift status of the resource in a stack instance.    DELETED: The resource differs from its expected template configuration in that the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected template values.    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation doesn't currently return this value.
        public let stackResourceDriftStatus: StackResourceDriftStatus?
        /// Time at which the stack instance drift detection operation was initiated.
        public let timestamp: Date?

        @inlinable
        public init(logicalResourceId: String? = nil, physicalResourceId: String? = nil, physicalResourceIdContext: [PhysicalResourceIdContextKeyValuePair]? = nil, propertyDifferences: [PropertyDifference]? = nil, resourceType: String? = nil, stackId: String? = nil, stackResourceDriftStatus: StackResourceDriftStatus? = nil, timestamp: Date? = nil) {
            self.logicalResourceId = logicalResourceId
            self.physicalResourceId = physicalResourceId
            self.physicalResourceIdContext = physicalResourceIdContext
            self.propertyDifferences = propertyDifferences
            self.resourceType = resourceType
            self.stackId = stackId
            self.stackResourceDriftStatus = stackResourceDriftStatus
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case logicalResourceId = "LogicalResourceId"
            case physicalResourceId = "PhysicalResourceId"
            case physicalResourceIdContext = "PhysicalResourceIdContext"
            case propertyDifferences = "PropertyDifferences"
            case resourceType = "ResourceType"
            case stackId = "StackId"
            case stackResourceDriftStatus = "StackResourceDriftStatus"
            case timestamp = "Timestamp"
        }
    }

    public struct StackInstanceSummary: AWSDecodableShape {
        /// [Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.
        public let account: String?
        /// Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the StackSet it belongs to.    DRIFTED: The stack differs from the expected template and parameter configuration of the StackSet it belongs to. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.    NOT_CHECKED: CloudFormation hasn't checked if the stack instance differs from its expected StackSet configuration.    IN_SYNC: The stack instance's actual configuration matches its expected StackSet configuration.    UNKNOWN: This value is reserved for future use.
        public let driftStatus: StackDriftStatus?
        /// Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL for any stack instance that drift detection hasn't yet been performed on.
        public let lastDriftCheckTimestamp: Date?
        /// The last unique ID of a StackSet operation performed on a stack instance.
        public let lastOperationId: String?
        /// [Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
        public let organizationalUnitId: String?
        /// The name of the Amazon Web Services Region that the stack instance is associated with.
        public let region: String?
        /// The ID of the stack instance.
        public let stackId: String?
        /// The detailed status of the stack instance.
        public let stackInstanceStatus: StackInstanceComprehensiveStatus?
        /// The name or unique ID of the StackSet that the stack instance is associated with.
        public let stackSetId: String?
        /// The status of the stack instance, in terms of its synchronization with its associated stack set.    INOPERABLE: A DeleteStackInstances operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further UpdateStackSet operations. You might need to perform a DeleteStackInstances operation, with RetainStacks set to true, to delete the stack instance, and then delete the stack manually. INOPERABLE can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, call the DescribeStackInstance API operation, look at the DetailedStatus member returned in the StackInstanceSummary member.    OUTDATED: The stack isn't currently up to date with the StackSet because:   The associated stack failed during a CreateStackSet or UpdateStackSet operation.   The stack was part of a CreateStackSet or UpdateStackSet operation that failed or was stopped before the stack was created or updated.      CURRENT: The stack is currently up to date with the StackSet.
        public let status: StackInstanceStatus?
        /// The explanation for the specific status code assigned to this stack instance.
        public let statusReason: String?

        @inlinable
        public init(account: String? = nil, driftStatus: StackDriftStatus? = nil, lastDriftCheckTimestamp: Date? = nil, lastOperationId: String? = nil, organizationalUnitId: String? = nil, region: String? = nil, stackId: String? = nil, stackInstanceStatus: StackInstanceComprehensiveStatus? = nil, stackSetId: String? = nil, status: StackInstanceStatus? = nil, statusReason: String? = nil) {
            self.account = account
            self.driftStatus = driftStatus
            self.lastDriftCheckTimestamp = lastDriftCheckTimestamp
            self.lastOperationId = lastOperationId
            self.organizationalUnitId = organizationalUnitId
            self.region = region
            self.stackId = stackId
            self.stackInstanceStatus = stackInstanceStatus
            self.stackSetId = stackSetId
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case account = "Account"
            case driftStatus = "DriftStatus"
            case lastDriftCheckTimestamp = "LastDriftCheckTimestamp"
            case lastOperationId = "LastOperationId"
            case organizationalUnitId = "OrganizationalUnitId"
            case region = "Region"
            case stackId = "StackId"
            case stackInstanceStatus = "StackInstanceStatus"
            case stackSetId = "StackSetId"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct StackRefactorAction: AWSDecodableShape {
        /// The action that CloudFormation takes on the stack.
        public let action: StackRefactorActionType?
        /// A description to help you identify the refactor.
        public let description: String?
        /// The detection type is one of the following:   Auto: CloudFormation figured out the mapping on its own.   Manual: The customer provided the mapping in the ResourceMapping parameter.
        public let detection: StackRefactorDetection?
        /// The description of the detection type.
        public let detectionReason: String?
        /// The type that will be evaluated in the StackRefactorAction. The following are potential Entity types:    Stack     Resource
        public let entity: StackRefactorActionEntity?
        /// The name or unique identifier associated with the physical instance of the resource.
        public let physicalResourceId: String?
        /// A key-value pair that identifies the target resource. The key is an identifier property (for example, BucketName for AWS::S3::Bucket resources) and the value is the actual property value (for example, MyS3Bucket).
        public let resourceIdentifier: String?
        /// The mapping for the stack resource Source and stack resource Destination.
        public let resourceMapping: ResourceMapping?
        /// Assigns one or more tags to specified resources.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tagResources: [Tag]?
        /// Removes one or more tags to specified resources.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var untagResources: [String]?

        @inlinable
        public init(action: StackRefactorActionType? = nil, description: String? = nil, detection: StackRefactorDetection? = nil, detectionReason: String? = nil, entity: StackRefactorActionEntity? = nil, physicalResourceId: String? = nil, resourceIdentifier: String? = nil, resourceMapping: ResourceMapping? = nil, tagResources: [Tag]? = nil, untagResources: [String]? = nil) {
            self.action = action
            self.description = description
            self.detection = detection
            self.detectionReason = detectionReason
            self.entity = entity
            self.physicalResourceId = physicalResourceId
            self.resourceIdentifier = resourceIdentifier
            self.resourceMapping = resourceMapping
            self.tagResources = tagResources
            self.untagResources = untagResources
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case description = "Description"
            case detection = "Detection"
            case detectionReason = "DetectionReason"
            case entity = "Entity"
            case physicalResourceId = "PhysicalResourceId"
            case resourceIdentifier = "ResourceIdentifier"
            case resourceMapping = "ResourceMapping"
            case tagResources = "TagResources"
            case untagResources = "UntagResources"
        }
    }

    public struct StackRefactorSummary: AWSDecodableShape {
        /// A description to help you identify the refactor.
        public let description: String?
        /// The operation status that's provided after calling the ExecuteStackRefactor action.
        public let executionStatus: StackRefactorExecutionStatus?
        /// A detailed explanation for the stack refactor ExecutionStatus.
        public let executionStatusReason: String?
        /// The ID associated with the stack refactor created from the CreateStackRefactor action.
        public let stackRefactorId: String?
        /// The stack refactor operation status that's provided after calling the CreateStackRefactor action.
        public let status: StackRefactorStatus?
        /// A detailed explanation for the stack refactor Status.
        public let statusReason: String?

        @inlinable
        public init(description: String? = nil, executionStatus: StackRefactorExecutionStatus? = nil, executionStatusReason: String? = nil, stackRefactorId: String? = nil, status: StackRefactorStatus? = nil, statusReason: String? = nil) {
            self.description = description
            self.executionStatus = executionStatus
            self.executionStatusReason = executionStatusReason
            self.stackRefactorId = stackRefactorId
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case executionStatus = "ExecutionStatus"
            case executionStatusReason = "ExecutionStatusReason"
            case stackRefactorId = "StackRefactorId"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct StackResource: AWSDecodableShape {
        /// User defined description associated with the resource.
        public let description: String?
        /// Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
        public let driftInformation: StackResourceDriftInformation?
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
        public let moduleInfo: ModuleInfo?
        /// The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
        public let physicalResourceId: String?
        /// Current status of the resource.
        public let resourceStatus: ResourceStatus?
        /// Success/failure message associated with the resource.
        public let resourceStatusReason: String?
        /// Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
        public let resourceType: String?
        /// Unique identifier of the stack.
        public let stackId: String?
        /// The name associated with the stack.
        public let stackName: String?
        /// Time the status was updated.
        public let timestamp: Date?

        @inlinable
        public init(description: String? = nil, driftInformation: StackResourceDriftInformation? = nil, logicalResourceId: String? = nil, moduleInfo: ModuleInfo? = nil, physicalResourceId: String? = nil, resourceStatus: ResourceStatus? = nil, resourceStatusReason: String? = nil, resourceType: String? = nil, stackId: String? = nil, stackName: String? = nil, timestamp: Date? = nil) {
            self.description = description
            self.driftInformation = driftInformation
            self.logicalResourceId = logicalResourceId
            self.moduleInfo = moduleInfo
            self.physicalResourceId = physicalResourceId
            self.resourceStatus = resourceStatus
            self.resourceStatusReason = resourceStatusReason
            self.resourceType = resourceType
            self.stackId = stackId
            self.stackName = stackName
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case driftInformation = "DriftInformation"
            case logicalResourceId = "LogicalResourceId"
            case moduleInfo = "ModuleInfo"
            case physicalResourceId = "PhysicalResourceId"
            case resourceStatus = "ResourceStatus"
            case resourceStatusReason = "ResourceStatusReason"
            case resourceType = "ResourceType"
            case stackId = "StackId"
            case stackName = "StackName"
            case timestamp = "Timestamp"
        }
    }

    public struct StackResourceDetail: AWSDecodableShape {
        /// User defined description associated with the resource.
        public let description: String?
        /// Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
        public let driftInformation: StackResourceDriftInformation?
        /// Time the status was updated.
        public let lastUpdatedTimestamp: Date?
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// The content of the Metadata attribute declared for the resource. For more information, see Metadata attribute in the CloudFormation User Guide.
        public let metadata: String?
        /// Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
        public let moduleInfo: ModuleInfo?
        /// The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
        public let physicalResourceId: String?
        /// Current status of the resource.
        public let resourceStatus: ResourceStatus?
        /// Success/failure message associated with the resource.
        public let resourceStatusReason: String?
        /// Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.
        public let resourceType: String?
        /// Unique identifier of the stack.
        public let stackId: String?
        /// The name associated with the stack.
        public let stackName: String?

        @inlinable
        public init(description: String? = nil, driftInformation: StackResourceDriftInformation? = nil, lastUpdatedTimestamp: Date? = nil, logicalResourceId: String? = nil, metadata: String? = nil, moduleInfo: ModuleInfo? = nil, physicalResourceId: String? = nil, resourceStatus: ResourceStatus? = nil, resourceStatusReason: String? = nil, resourceType: String? = nil, stackId: String? = nil, stackName: String? = nil) {
            self.description = description
            self.driftInformation = driftInformation
            self.lastUpdatedTimestamp = lastUpdatedTimestamp
            self.logicalResourceId = logicalResourceId
            self.metadata = metadata
            self.moduleInfo = moduleInfo
            self.physicalResourceId = physicalResourceId
            self.resourceStatus = resourceStatus
            self.resourceStatusReason = resourceStatusReason
            self.resourceType = resourceType
            self.stackId = stackId
            self.stackName = stackName
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case driftInformation = "DriftInformation"
            case lastUpdatedTimestamp = "LastUpdatedTimestamp"
            case logicalResourceId = "LogicalResourceId"
            case metadata = "Metadata"
            case moduleInfo = "ModuleInfo"
            case physicalResourceId = "PhysicalResourceId"
            case resourceStatus = "ResourceStatus"
            case resourceStatusReason = "ResourceStatusReason"
            case resourceType = "ResourceType"
            case stackId = "StackId"
            case stackName = "StackName"
        }
    }

    public struct StackResourceDrift: AWSDecodableShape {
        /// A JSON structure that contains the actual property values of the stack resource. For resources whose StackResourceDriftStatus is DELETED, this structure will not be present.
        public let actualProperties: String?
        /// The reason for the drift status.
        public let driftStatusReason: String?
        /// A JSON structure that contains the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters. For resources whose StackResourceDriftStatus is DELETED, this structure will not be present.
        public let expectedProperties: String?
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
        public let moduleInfo: ModuleInfo?
        /// The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
        public let physicalResourceId: String?
        /// Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
        @OptionalCustomCoding<StandardArrayCoder<PhysicalResourceIdContextKeyValuePair>>
        public var physicalResourceIdContext: [PhysicalResourceIdContextKeyValuePair]?
        /// A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whose StackResourceDriftStatus is MODIFIED.
        @OptionalCustomCoding<StandardArrayCoder<PropertyDifference>>
        public var propertyDifferences: [PropertyDifference]?
        /// The type of the resource.
        public let resourceType: String?
        /// The ID of the stack.
        public let stackId: String?
        /// Status of the resource's actual configuration compared to its expected configuration.    DELETED: The resource differs from its expected template configuration because the resource has been deleted.    MODIFIED: One or more resource properties differ from their expected values (as defined in the stack template and any values specified as template parameters).    IN_SYNC: The resource's actual configuration matches its expected template configuration.    NOT_CHECKED: CloudFormation does not currently return this value.    UNKNOWN: CloudFormation could not run drift detection for the resource. See the DriftStatusReason for details.
        public let stackResourceDriftStatus: StackResourceDriftStatus?
        /// Time at which CloudFormation performed drift detection on the stack resource.
        public let timestamp: Date?

        @inlinable
        public init(actualProperties: String? = nil, driftStatusReason: String? = nil, expectedProperties: String? = nil, logicalResourceId: String? = nil, moduleInfo: ModuleInfo? = nil, physicalResourceId: String? = nil, physicalResourceIdContext: [PhysicalResourceIdContextKeyValuePair]? = nil, propertyDifferences: [PropertyDifference]? = nil, resourceType: String? = nil, stackId: String? = nil, stackResourceDriftStatus: StackResourceDriftStatus? = nil, timestamp: Date? = nil) {
            self.actualProperties = actualProperties
            self.driftStatusReason = driftStatusReason
            self.expectedProperties = expectedProperties
            self.logicalResourceId = logicalResourceId
            self.moduleInfo = moduleInfo
            self.physicalResourceId = physicalResourceId
            self.physicalResourceIdContext = physicalResourceIdContext
            self.propertyDifferences = propertyDifferences
            self.resourceType = resourceType
            self.stackId = stackId
            self.stackResourceDriftStatus = stackResourceDriftStatus
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case actualProperties = "ActualProperties"
            case driftStatusReason = "DriftStatusReason"
            case expectedProperties = "ExpectedProperties"
            case logicalResourceId = "LogicalResourceId"
            case moduleInfo = "ModuleInfo"
            case physicalResourceId = "PhysicalResourceId"
            case physicalResourceIdContext = "PhysicalResourceIdContext"
            case propertyDifferences = "PropertyDifferences"
            case resourceType = "ResourceType"
            case stackId = "StackId"
            case stackResourceDriftStatus = "StackResourceDriftStatus"
            case timestamp = "Timestamp"
        }
    }

    public struct StackResourceDriftInformation: AWSDecodableShape {
        /// When CloudFormation last checked if the resource had drifted from its expected configuration.
        public let lastCheckTimestamp: Date?
        /// Status of the resource's actual configuration compared to its expected configuration    DELETED: The resource differs from its expected configuration in that it has been deleted.    MODIFIED: The resource differs from its expected configuration.    NOT_CHECKED: CloudFormation has not checked if the resource differs from its expected configuration. Any resources that do not currently support drift detection have a status of NOT_CHECKED. For more information, see Resource type support for imports and drift detection.    IN_SYNC: The resource's actual configuration matches its expected configuration.
        public let stackResourceDriftStatus: StackResourceDriftStatus?

        @inlinable
        public init(lastCheckTimestamp: Date? = nil, stackResourceDriftStatus: StackResourceDriftStatus? = nil) {
            self.lastCheckTimestamp = lastCheckTimestamp
            self.stackResourceDriftStatus = stackResourceDriftStatus
        }

        private enum CodingKeys: String, CodingKey {
            case lastCheckTimestamp = "LastCheckTimestamp"
            case stackResourceDriftStatus = "StackResourceDriftStatus"
        }
    }

    public struct StackResourceDriftInformationSummary: AWSDecodableShape {
        /// When CloudFormation last checked if the resource had drifted from its expected configuration.
        public let lastCheckTimestamp: Date?
        /// Status of the resource's actual configuration compared to its expected configuration.    DELETED: The resource differs from its expected configuration in that it has been deleted.    MODIFIED: The resource differs from its expected configuration.    NOT_CHECKED: CloudFormation hasn't checked if the resource differs from its expected configuration. Any resources that don't currently support drift detection have a status of NOT_CHECKED. For more information, see Resource type support for imports and drift detection. If you performed an ContinueUpdateRollback operation on a stack, any resources included in ResourcesToSkip will also have a status of NOT_CHECKED. For more information about skipping resources during rollback operations, see Continue rolling back an update in the CloudFormation User Guide.    IN_SYNC: The resource's actual configuration matches its expected configuration.
        public let stackResourceDriftStatus: StackResourceDriftStatus?

        @inlinable
        public init(lastCheckTimestamp: Date? = nil, stackResourceDriftStatus: StackResourceDriftStatus? = nil) {
            self.lastCheckTimestamp = lastCheckTimestamp
            self.stackResourceDriftStatus = stackResourceDriftStatus
        }

        private enum CodingKeys: String, CodingKey {
            case lastCheckTimestamp = "LastCheckTimestamp"
            case stackResourceDriftStatus = "StackResourceDriftStatus"
        }
    }

    public struct StackResourceSummary: AWSDecodableShape {
        /// Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
        public let driftInformation: StackResourceDriftInformationSummary?
        /// Time the status was updated.
        public let lastUpdatedTimestamp: Date?
        /// The logical name of the resource specified in the template.
        public let logicalResourceId: String?
        /// Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
        public let moduleInfo: ModuleInfo?
        /// The name or unique identifier that corresponds to a physical instance ID of the resource.
        public let physicalResourceId: String?
        /// Current status of the resource.
        public let resourceStatus: ResourceStatus?
        /// Success/failure message associated with the resource.
        public let resourceStatusReason: String?
        /// Type of resource. (For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide.)
        public let resourceType: String?

        @inlinable
        public init(driftInformation: StackResourceDriftInformationSummary? = nil, lastUpdatedTimestamp: Date? = nil, logicalResourceId: String? = nil, moduleInfo: ModuleInfo? = nil, physicalResourceId: String? = nil, resourceStatus: ResourceStatus? = nil, resourceStatusReason: String? = nil, resourceType: String? = nil) {
            self.driftInformation = driftInformation
            self.lastUpdatedTimestamp = lastUpdatedTimestamp
            self.logicalResourceId = logicalResourceId
            self.moduleInfo = moduleInfo
            self.physicalResourceId = physicalResourceId
            self.resourceStatus = resourceStatus
            self.resourceStatusReason = resourceStatusReason
            self.resourceType = resourceType
        }

        private enum CodingKeys: String, CodingKey {
            case driftInformation = "DriftInformation"
            case lastUpdatedTimestamp = "LastUpdatedTimestamp"
            case logicalResourceId = "LogicalResourceId"
            case moduleInfo = "ModuleInfo"
            case physicalResourceId = "PhysicalResourceId"
            case resourceStatus = "ResourceStatus"
            case resourceStatusReason = "ResourceStatusReason"
            case resourceType = "ResourceType"
        }
    }

    public struct StackSet: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the IAM role used to create or update the stack set. Use customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Prerequisites for using CloudFormation StackSets in the CloudFormation User Guide.
        public let administrationRoleARN: String?
        /// Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organization or organizational unit (OU). Valid only if the StackSet uses service-managed permissions.
        public let autoDeployment: AutoDeployment?
        /// The capabilities that are allowed in the StackSet. Some StackSet templates might include resources that can affect permissions in your Amazon Web Services account—for example, by creating new Identity and Access Management (IAM) users. For more information, see Acknowledging IAM resources in CloudFormation templates.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// A description of the StackSet that you specify when the StackSet is created or updated.
        public let description: String?
        /// The name of the IAM execution role used to create or update the StackSet. Use customized execution roles to control which stack resources users and groups can include in their StackSets.
        public let executionRoleName: String?
        /// Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.
        public let managedExecution: ManagedExecution?
        /// [Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var organizationalUnitIds: [String]?
        /// A list of input parameters for a StackSet.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// Describes how the IAM roles required for StackSet operations are created.   With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions.   With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations.
        public let permissionModel: PermissionModels?
        /// Returns a list of all Amazon Web Services Regions the given StackSet has stack instances deployed in. The Amazon Web Services Regions list output is in no particular order.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regions: [String]?
        /// The Amazon Resource Name (ARN) of the StackSet.
        public let stackSetARN: String?
        /// Detailed information about the drift status of the StackSet. For StackSets, contains information about the last completed drift operation performed on the StackSet. Information about drift operations currently in progress isn't included.
        public let stackSetDriftDetectionDetails: StackSetDriftDetectionDetails?
        /// The ID of the StackSet.
        public let stackSetId: String?
        /// The name that's associated with the StackSet.
        public let stackSetName: String?
        /// The status of the StackSet.
        public let status: StackSetStatus?
        /// A list of tags that specify information about the StackSet. A maximum number of 50 tags can be specified.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// The structure that contains the body of the template that was used to create or update the StackSet.
        public let templateBody: String?

        @inlinable
        public init(administrationRoleARN: String? = nil, autoDeployment: AutoDeployment? = nil, capabilities: [Capability]? = nil, description: String? = nil, executionRoleName: String? = nil, managedExecution: ManagedExecution? = nil, organizationalUnitIds: [String]? = nil, parameters: [Parameter]? = nil, permissionModel: PermissionModels? = nil, regions: [String]? = nil, stackSetARN: String? = nil, stackSetDriftDetectionDetails: StackSetDriftDetectionDetails? = nil, stackSetId: String? = nil, stackSetName: String? = nil, status: StackSetStatus? = nil, tags: [Tag]? = nil, templateBody: String? = nil) {
            self.administrationRoleARN = administrationRoleARN
            self.autoDeployment = autoDeployment
            self.capabilities = capabilities
            self.description = description
            self.executionRoleName = executionRoleName
            self.managedExecution = managedExecution
            self.organizationalUnitIds = organizationalUnitIds
            self.parameters = parameters
            self.permissionModel = permissionModel
            self.regions = regions
            self.stackSetARN = stackSetARN
            self.stackSetDriftDetectionDetails = stackSetDriftDetectionDetails
            self.stackSetId = stackSetId
            self.stackSetName = stackSetName
            self.status = status
            self.tags = tags
            self.templateBody = templateBody
        }

        private enum CodingKeys: String, CodingKey {
            case administrationRoleARN = "AdministrationRoleARN"
            case autoDeployment = "AutoDeployment"
            case capabilities = "Capabilities"
            case description = "Description"
            case executionRoleName = "ExecutionRoleName"
            case managedExecution = "ManagedExecution"
            case organizationalUnitIds = "OrganizationalUnitIds"
            case parameters = "Parameters"
            case permissionModel = "PermissionModel"
            case regions = "Regions"
            case stackSetARN = "StackSetARN"
            case stackSetDriftDetectionDetails = "StackSetDriftDetectionDetails"
            case stackSetId = "StackSetId"
            case stackSetName = "StackSetName"
            case status = "Status"
            case tags = "Tags"
            case templateBody = "TemplateBody"
        }
    }

    public struct StackSetAutoDeploymentTargetSummary: AWSDecodableShape {
        /// The organization root ID or organizational unit (OU) IDs where the StackSet is targeted.
        public let organizationalUnitId: String?
        /// The list of Regions targeted for this organization or OU.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regions: [String]?

        @inlinable
        public init(organizationalUnitId: String? = nil, regions: [String]? = nil) {
            self.organizationalUnitId = organizationalUnitId
            self.regions = regions
        }

        private enum CodingKeys: String, CodingKey {
            case organizationalUnitId = "OrganizationalUnitId"
            case regions = "Regions"
        }
    }

    public struct StackSetDriftDetectionDetails: AWSDecodableShape {
        /// The status of the StackSet drift detection operation.    COMPLETED: The drift detection operation completed without failing on any stack instances.    FAILED: The drift detection operation exceeded the specified failure tolerance.    PARTIAL_SUCCESS: The drift detection operation completed without exceeding the failure tolerance for the operation.    IN_PROGRESS: The drift detection operation is currently being performed.    STOPPED: The user has canceled the drift detection operation.
        public let driftDetectionStatus: StackSetDriftDetectionStatus?
        /// The number of stack instances that have drifted from the expected template and parameter configuration of the StackSet. A stack instance is considered to have drifted if one or more of the resources in the associated stack don't match their expected configuration.
        public let driftedStackInstancesCount: Int?
        /// Status of the StackSet's actual configuration compared to its expected template and parameter configuration.    DRIFTED: One or more of the stack instances belonging to the StackSet differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.    NOT_CHECKED: CloudFormation hasn't checked the StackSet for drift.    IN_SYNC: All of the stack instances belonging to the StackSet stack match the expected template and parameter configuration.
        public let driftStatus: StackSetDriftStatus?
        /// The number of stack instances for which the drift detection operation failed.
        public let failedStackInstancesCount: Int?
        /// The number of stack instances that are currently being checked for drift.
        public let inProgressStackInstancesCount: Int?
        /// The number of stack instances which match the expected template and parameter configuration of the StackSet.
        public let inSyncStackInstancesCount: Int?
        /// Most recent time when CloudFormation performed a drift detection operation on the StackSet. This value will be NULL for any StackSet that drift detection hasn't yet been performed on.
        public let lastDriftCheckTimestamp: Date?
        /// The total number of stack instances belonging to this StackSet. The total number of stack instances is equal to the total of:   Stack instances that match the StackSet configuration.   Stack instances that have drifted from the StackSet configuration.   Stack instances where the drift detection operation has failed.   Stack instances currently being checked for drift.
        public let totalStackInstancesCount: Int?

        @inlinable
        public init(driftDetectionStatus: StackSetDriftDetectionStatus? = nil, driftedStackInstancesCount: Int? = nil, driftStatus: StackSetDriftStatus? = nil, failedStackInstancesCount: Int? = nil, inProgressStackInstancesCount: Int? = nil, inSyncStackInstancesCount: Int? = nil, lastDriftCheckTimestamp: Date? = nil, totalStackInstancesCount: Int? = nil) {
            self.driftDetectionStatus = driftDetectionStatus
            self.driftedStackInstancesCount = driftedStackInstancesCount
            self.driftStatus = driftStatus
            self.failedStackInstancesCount = failedStackInstancesCount
            self.inProgressStackInstancesCount = inProgressStackInstancesCount
            self.inSyncStackInstancesCount = inSyncStackInstancesCount
            self.lastDriftCheckTimestamp = lastDriftCheckTimestamp
            self.totalStackInstancesCount = totalStackInstancesCount
        }

        private enum CodingKeys: String, CodingKey {
            case driftDetectionStatus = "DriftDetectionStatus"
            case driftedStackInstancesCount = "DriftedStackInstancesCount"
            case driftStatus = "DriftStatus"
            case failedStackInstancesCount = "FailedStackInstancesCount"
            case inProgressStackInstancesCount = "InProgressStackInstancesCount"
            case inSyncStackInstancesCount = "InSyncStackInstancesCount"
            case lastDriftCheckTimestamp = "LastDriftCheckTimestamp"
            case totalStackInstancesCount = "TotalStackInstancesCount"
        }
    }

    public struct StackSetOperation: AWSDecodableShape {
        /// The type of StackSet operation: CREATE, UPDATE, or DELETE. Create and delete operations affect only the specified stack instances that are associated with the specified StackSet. Update operations affect both the StackSet itself, in addition to all associated stack instances.
        public let action: StackSetOperationAction?
        /// The Amazon Resource Name (ARN) of the IAM role used to perform this StackSet operation. Use customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide.
        public let administrationRoleARN: String?
        /// The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.
        public let creationTimestamp: Date?
        /// The Organizations accounts affected by the stack operation. Valid only if the StackSet uses service-managed permissions.
        public let deploymentTargets: DeploymentTargets?
        /// The time at which the StackSet operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the StackSet operation was successful, or even attempted, in each account or Region.
        public let endTimestamp: Date?
        /// The name of the IAM execution role used to create or update the StackSet. Use customized execution roles to control which stack resources users and groups can include in their StackSets.
        public let executionRoleName: String?
        /// The unique ID of a StackSet operation.
        public let operationId: String?
        /// The preferences for how CloudFormation performs this StackSet operation.
        public let operationPreferences: StackSetOperationPreferences?
        /// For StackSet operations of action type DELETE, specifies whether to remove the stack instances from the specified StackSet, but doesn't delete the stacks. You can't re-associate a retained stack, or add an existing, saved stack to a new StackSet.
        public let retainStacks: Bool?
        /// Detailed information about the drift status of the StackSet. This includes information about drift operations currently being performed on the StackSet. This information will only be present for StackSet operations whose Action type is DETECT_DRIFT. For more information, see Performing drift detection on CloudFormation StackSets in the CloudFormation User Guide.
        public let stackSetDriftDetectionDetails: StackSetDriftDetectionDetails?
        /// The ID of the StackSet.
        public let stackSetId: String?
        /// The status of the operation.    FAILED: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to FAILED. This in turn sets the status of the operation as a whole to FAILED, and CloudFormation cancels the operation in any remaining Regions.    QUEUED: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the StackSets status codes in the CloudFormation User Guide.    RUNNING: The operation is currently being performed.    STOPPED: The user has canceled the operation.    STOPPING: The operation is in the process of stopping, at user request.    SUCCEEDED: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.
        public let status: StackSetOperationStatus?
        /// Detailed information about the StackSet operation.
        public let statusDetails: StackSetOperationStatusDetails?
        /// The status of the operation in details.
        public let statusReason: String?

        @inlinable
        public init(action: StackSetOperationAction? = nil, administrationRoleARN: String? = nil, creationTimestamp: Date? = nil, deploymentTargets: DeploymentTargets? = nil, endTimestamp: Date? = nil, executionRoleName: String? = nil, operationId: String? = nil, operationPreferences: StackSetOperationPreferences? = nil, retainStacks: Bool? = nil, stackSetDriftDetectionDetails: StackSetDriftDetectionDetails? = nil, stackSetId: String? = nil, status: StackSetOperationStatus? = nil, statusDetails: StackSetOperationStatusDetails? = nil, statusReason: String? = nil) {
            self.action = action
            self.administrationRoleARN = administrationRoleARN
            self.creationTimestamp = creationTimestamp
            self.deploymentTargets = deploymentTargets
            self.endTimestamp = endTimestamp
            self.executionRoleName = executionRoleName
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.retainStacks = retainStacks
            self.stackSetDriftDetectionDetails = stackSetDriftDetectionDetails
            self.stackSetId = stackSetId
            self.status = status
            self.statusDetails = statusDetails
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case administrationRoleARN = "AdministrationRoleARN"
            case creationTimestamp = "CreationTimestamp"
            case deploymentTargets = "DeploymentTargets"
            case endTimestamp = "EndTimestamp"
            case executionRoleName = "ExecutionRoleName"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case retainStacks = "RetainStacks"
            case stackSetDriftDetectionDetails = "StackSetDriftDetectionDetails"
            case stackSetId = "StackSetId"
            case status = "Status"
            case statusDetails = "StatusDetails"
            case statusReason = "StatusReason"
        }
    }

    public struct StackSetOperationPreferences: AWSEncodableShape & AWSDecodableShape {
        /// Specifies how the concurrency level behaves during the operation execution.    STRICT_FAILURE_TOLERANCE: This option dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the value of FailureToleranceCount +1. The initial actual concurrency is set to the lower of either the value of the MaxConcurrentCount, or the value of FailureToleranceCount +1. The actual concurrency is then reduced proportionally by the number of failures. This is the default behavior. If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.    SOFT_FAILURE_TOLERANCE: This option decouples FailureToleranceCount from the actual concurrency. This allows StackSet operations to run at the concurrency level set by the MaxConcurrentCount value, or MaxConcurrentPercentage, regardless of the number of failures.
        public let concurrencyMode: ConcurrencyMode?
        /// The number of accounts per Region this operation can fail in before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions. You can specify either FailureToleranceCount or FailureTolerancePercentage, but not both. By default, 0 is specified.
        public let failureToleranceCount: Int?
        /// The percentage of accounts per Region this stack operation can fail in before CloudFormation stops the operation in that Region. If the operation is stopped in a Region, CloudFormation doesn't attempt the operation in any subsequent Regions. When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. You can specify either FailureToleranceCount or FailureTolerancePercentage, but not both. By default, 0 is specified.
        public let failureTolerancePercentage: Int?
        /// The maximum number of accounts in which to perform this operation at one time. This can depend on the value of FailureToleranceCount depending on your ConcurrencyMode. MaxConcurrentCount is at most one more than the FailureToleranceCount if you're using STRICT_FAILURE_TOLERANCE. Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. You can specify either MaxConcurrentCount or MaxConcurrentPercentage, but not both. By default, 1 is specified.
        public let maxConcurrentCount: Int?
        /// The maximum percentage of accounts in which to perform this operation at one time. When calculating the number of accounts based on the specified percentage, CloudFormation rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, CloudFormation sets the number as one instead. Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. You can specify either MaxConcurrentCount or MaxConcurrentPercentage, but not both. By default, 1 is specified.
        public let maxConcurrentPercentage: Int?
        /// The concurrency type of deploying StackSets operations in Regions, could be in parallel or one Region at a time.
        public let regionConcurrencyType: RegionConcurrencyType?
        /// The order of the Regions where you want to perform the stack operation.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regionOrder: [String]?

        @inlinable
        public init(concurrencyMode: ConcurrencyMode? = nil, failureToleranceCount: Int? = nil, failureTolerancePercentage: Int? = nil, maxConcurrentCount: Int? = nil, maxConcurrentPercentage: Int? = nil, regionConcurrencyType: RegionConcurrencyType? = nil, regionOrder: [String]? = nil) {
            self.concurrencyMode = concurrencyMode
            self.failureToleranceCount = failureToleranceCount
            self.failureTolerancePercentage = failureTolerancePercentage
            self.maxConcurrentCount = maxConcurrentCount
            self.maxConcurrentPercentage = maxConcurrentPercentage
            self.regionConcurrencyType = regionConcurrencyType
            self.regionOrder = regionOrder
        }

        public func validate(name: String) throws {
            try self.validate(self.failureToleranceCount, name: "failureToleranceCount", parent: name, min: 0)
            try self.validate(self.failureTolerancePercentage, name: "failureTolerancePercentage", parent: name, max: 100)
            try self.validate(self.failureTolerancePercentage, name: "failureTolerancePercentage", parent: name, min: 0)
            try self.validate(self.maxConcurrentCount, name: "maxConcurrentCount", parent: name, min: 1)
            try self.validate(self.maxConcurrentPercentage, name: "maxConcurrentPercentage", parent: name, max: 100)
            try self.validate(self.maxConcurrentPercentage, name: "maxConcurrentPercentage", parent: name, min: 1)
            try self.regionOrder?.forEach {
                try validate($0, name: "regionOrder[]", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case concurrencyMode = "ConcurrencyMode"
            case failureToleranceCount = "FailureToleranceCount"
            case failureTolerancePercentage = "FailureTolerancePercentage"
            case maxConcurrentCount = "MaxConcurrentCount"
            case maxConcurrentPercentage = "MaxConcurrentPercentage"
            case regionConcurrencyType = "RegionConcurrencyType"
            case regionOrder = "RegionOrder"
        }
    }

    public struct StackSetOperationResultSummary: AWSDecodableShape {
        /// [Self-managed permissions] The name of the Amazon Web Services account for this operation result.
        public let account: String?
        /// The results of the account gate function CloudFormation invokes, if present, before proceeding with StackSet operations in an account.
        public let accountGateResult: AccountGateResult?
        /// [Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets.
        public let organizationalUnitId: String?
        /// The name of the Amazon Web Services Region for this operation result.
        public let region: String?
        /// The result status of the StackSet operation for the given account in the given Region.    CANCELLED: The operation in the specified account and Region has been canceled. This is either because a user has stopped the StackSet operation, or because the failure tolerance of the StackSet operation has been exceeded.    FAILED: The operation in the specified account and Region failed. If the StackSet operation fails in enough accounts within a Region, the failure tolerance for the StackSet operation as a whole might be exceeded.    RUNNING: The operation in the specified account and Region is currently in progress.    PENDING: The operation in the specified account and Region has yet to start.    SUCCEEDED: The operation in the specified account and Region completed successfully.
        public let status: StackSetOperationResultStatus?
        /// The reason for the assigned result status.
        public let statusReason: String?

        @inlinable
        public init(account: String? = nil, accountGateResult: AccountGateResult? = nil, organizationalUnitId: String? = nil, region: String? = nil, status: StackSetOperationResultStatus? = nil, statusReason: String? = nil) {
            self.account = account
            self.accountGateResult = accountGateResult
            self.organizationalUnitId = organizationalUnitId
            self.region = region
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case account = "Account"
            case accountGateResult = "AccountGateResult"
            case organizationalUnitId = "OrganizationalUnitId"
            case region = "Region"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct StackSetOperationStatusDetails: AWSDecodableShape {
        /// The number of stack instances for which the StackSet operation failed.
        public let failedStackInstancesCount: Int?

        @inlinable
        public init(failedStackInstancesCount: Int? = nil) {
            self.failedStackInstancesCount = failedStackInstancesCount
        }

        private enum CodingKeys: String, CodingKey {
            case failedStackInstancesCount = "FailedStackInstancesCount"
        }
    }

    public struct StackSetOperationSummary: AWSDecodableShape {
        /// The type of operation: CREATE, UPDATE, or DELETE. Create and delete operations affect only the specified stack instances that are associated with the specified StackSet. Update operations affect both the StackSet itself and all associated StackSet instances.
        public let action: StackSetOperationAction?
        /// The time at which the operation was initiated. Note that the creation times for the StackSet operation might differ from the creation time of the individual stacks themselves. This is because CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested Regions, before actually creating the first stacks.
        public let creationTimestamp: Date?
        /// The time at which the StackSet operation ended, across all accounts and Regions specified. Note that this doesn't necessarily mean that the StackSet operation was successful, or even attempted, in each account or Region.
        public let endTimestamp: Date?
        /// The unique ID of the StackSet operation.
        public let operationId: String?
        /// The user-specified preferences for how CloudFormation performs a StackSet operation. For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
        public let operationPreferences: StackSetOperationPreferences?
        /// The overall status of the operation.    FAILED: The operation exceeded the specified failure tolerance. The failure tolerance value that you've set for an operation is applied for each Region during stack create and update operations. If the number of failed stacks within a Region exceeds the failure tolerance, the status of the operation in the Region is set to FAILED. This in turn sets the status of the operation as a whole to FAILED, and CloudFormation cancels the operation in any remaining Regions.    QUEUED: [Service-managed permissions] For automatic deployments that require a sequence of operations, the operation is queued to be performed. For more information, see the StackSet status codes in the CloudFormation User Guide.    RUNNING: The operation is currently being performed.    STOPPED: The user has canceled the operation.    STOPPING: The operation is in the process of stopping, at user request.    SUCCEEDED: The operation completed creating or updating all the specified stacks without exceeding the failure tolerance for the operation.
        public let status: StackSetOperationStatus?
        /// Detailed information about the StackSet operation.
        public let statusDetails: StackSetOperationStatusDetails?
        /// The status of the operation in details.
        public let statusReason: String?

        @inlinable
        public init(action: StackSetOperationAction? = nil, creationTimestamp: Date? = nil, endTimestamp: Date? = nil, operationId: String? = nil, operationPreferences: StackSetOperationPreferences? = nil, status: StackSetOperationStatus? = nil, statusDetails: StackSetOperationStatusDetails? = nil, statusReason: String? = nil) {
            self.action = action
            self.creationTimestamp = creationTimestamp
            self.endTimestamp = endTimestamp
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.status = status
            self.statusDetails = statusDetails
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case creationTimestamp = "CreationTimestamp"
            case endTimestamp = "EndTimestamp"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case status = "Status"
            case statusDetails = "StatusDetails"
            case statusReason = "StatusReason"
        }
    }

    public struct StackSetSummary: AWSDecodableShape {
        /// [Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organizational unit (OU).
        public let autoDeployment: AutoDeployment?
        /// A description of the StackSet that you specify when the StackSet is created or updated.
        public let description: String?
        /// Status of the StackSet's actual configuration compared to its expected template and parameter configuration.    DRIFTED: One or more of the stack instances belonging to the StackSet differs from the expected template and parameter configuration. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.    NOT_CHECKED: CloudFormation hasn't checked the StackSet for drift.    IN_SYNC: All the stack instances belonging to the StackSet match the expected template and parameter configuration.    UNKNOWN: This value is reserved for future use.
        public let driftStatus: StackDriftStatus?
        /// Most recent time when CloudFormation performed a drift detection operation on the StackSet. This value will be NULL for any StackSet that drift detection hasn't yet been performed on.
        public let lastDriftCheckTimestamp: Date?
        /// Describes whether StackSets performs non-conflicting operations concurrently and queues conflicting operations.
        public let managedExecution: ManagedExecution?
        /// Describes how the IAM roles required for StackSet operations are created.   With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions.   With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations.
        public let permissionModel: PermissionModels?
        /// The ID of the StackSet.
        public let stackSetId: String?
        /// The name of the StackSet.
        public let stackSetName: String?
        /// The status of the StackSet.
        public let status: StackSetStatus?

        @inlinable
        public init(autoDeployment: AutoDeployment? = nil, description: String? = nil, driftStatus: StackDriftStatus? = nil, lastDriftCheckTimestamp: Date? = nil, managedExecution: ManagedExecution? = nil, permissionModel: PermissionModels? = nil, stackSetId: String? = nil, stackSetName: String? = nil, status: StackSetStatus? = nil) {
            self.autoDeployment = autoDeployment
            self.description = description
            self.driftStatus = driftStatus
            self.lastDriftCheckTimestamp = lastDriftCheckTimestamp
            self.managedExecution = managedExecution
            self.permissionModel = permissionModel
            self.stackSetId = stackSetId
            self.stackSetName = stackSetName
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case autoDeployment = "AutoDeployment"
            case description = "Description"
            case driftStatus = "DriftStatus"
            case lastDriftCheckTimestamp = "LastDriftCheckTimestamp"
            case managedExecution = "ManagedExecution"
            case permissionModel = "PermissionModel"
            case stackSetId = "StackSetId"
            case stackSetName = "StackSetName"
            case status = "Status"
        }
    }

    public struct StackSummary: AWSDecodableShape {
        /// The time the stack was created.
        public let creationTime: Date?
        /// The time the stack was deleted.
        public let deletionTime: Date?
        /// Summarizes information about whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection.
        public let driftInformation: StackDriftInformationSummary?
        /// The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
        public let lastUpdatedTime: Date?
        /// For nested stacks, the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. For more information, see Nested stacks in the CloudFormation User Guide.
        public let parentId: String?
        /// For nested stacks, the stack ID of the top-level stack to which the nested stack ultimately belongs. For more information, see Nested stacks in the CloudFormation User Guide.
        public let rootId: String?
        /// Unique stack identifier.
        public let stackId: String?
        /// The name associated with the stack.
        public let stackName: String?
        /// The current status of the stack.
        public let stackStatus: StackStatus?
        /// Success/Failure message associated with the stack status.
        public let stackStatusReason: String?
        /// The template description of the template used to create the stack.
        public let templateDescription: String?

        @inlinable
        public init(creationTime: Date? = nil, deletionTime: Date? = nil, driftInformation: StackDriftInformationSummary? = nil, lastUpdatedTime: Date? = nil, parentId: String? = nil, rootId: String? = nil, stackId: String? = nil, stackName: String? = nil, stackStatus: StackStatus? = nil, stackStatusReason: String? = nil, templateDescription: String? = nil) {
            self.creationTime = creationTime
            self.deletionTime = deletionTime
            self.driftInformation = driftInformation
            self.lastUpdatedTime = lastUpdatedTime
            self.parentId = parentId
            self.rootId = rootId
            self.stackId = stackId
            self.stackName = stackName
            self.stackStatus = stackStatus
            self.stackStatusReason = stackStatusReason
            self.templateDescription = templateDescription
        }

        private enum CodingKeys: String, CodingKey {
            case creationTime = "CreationTime"
            case deletionTime = "DeletionTime"
            case driftInformation = "DriftInformation"
            case lastUpdatedTime = "LastUpdatedTime"
            case parentId = "ParentId"
            case rootId = "RootId"
            case stackId = "StackId"
            case stackName = "StackName"
            case stackStatus = "StackStatus"
            case stackStatusReason = "StackStatusReason"
            case templateDescription = "TemplateDescription"
        }
    }

    public struct StartResourceScanInput: AWSEncodableShape {
        /// A unique identifier for this StartResourceScan request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to start a new resource scan.
        public let clientRequestToken: String?
        /// The scan filters to use.
        @OptionalCustomCoding<StandardArrayCoder<ScanFilter>>
        public var scanFilters: [ScanFilter]?

        @inlinable
        public init(clientRequestToken: String? = nil, scanFilters: [ScanFilter]? = nil) {
            self.clientRequestToken = clientRequestToken
            self.scanFilters = scanFilters
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.scanFilters?.forEach {
                try $0.validate(name: "\(name).scanFilters[]")
            }
            try self.validate(self.scanFilters, name: "scanFilters", parent: name, max: 1)
            try self.validate(self.scanFilters, name: "scanFilters", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case clientRequestToken = "ClientRequestToken"
            case scanFilters = "ScanFilters"
        }
    }

    public struct StartResourceScanOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the resource scan. The format is arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. An example is arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 .
        public let resourceScanId: String?

        @inlinable
        public init(resourceScanId: String? = nil) {
            self.resourceScanId = resourceScanId
        }

        private enum CodingKeys: String, CodingKey {
            case resourceScanId = "ResourceScanId"
        }
    }

    public struct StopStackSetOperationInput: AWSEncodableShape {
        /// Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. Valid only if the StackSet uses service-managed permissions. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// The ID of the stack operation.
        public let operationId: String?
        /// The name or unique ID of the StackSet that you want to stop the operation for.
        public let stackSetName: String?

        @inlinable
        public init(callAs: CallAs? = nil, operationId: String? = nil, stackSetName: String? = nil) {
            self.callAs = callAs
            self.operationId = operationId
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case callAs = "CallAs"
            case operationId = "OperationId"
            case stackSetName = "StackSetName"
        }
    }

    public struct StopStackSetOperationOutput: AWSDecodableShape {
        public init() {}
    }

    public struct Tag: AWSEncodableShape & AWSDecodableShape {
        /// A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services have the reserved prefix: aws:.
        public let key: String?
        /// A string that contains the value for this tag. You can specify a maximum of 256 characters for a tag value.
        public let value: String?

        @inlinable
        public init(key: String? = nil, value: String? = nil) {
            self.key = key
            self.value = value
        }

        public func validate(name: String) throws {
            try self.validate(self.key, name: "key", parent: name, max: 128)
            try self.validate(self.key, name: "key", parent: name, min: 1)
            try self.validate(self.value, name: "value", parent: name, max: 256)
            try self.validate(self.value, name: "value", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case key = "Key"
            case value = "Value"
        }
    }

    public struct TemplateConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// The DeletionPolicy assigned to resources in the generated template. Supported values are:    DELETE - delete all resources when the stack is deleted.    RETAIN - retain all resources when the stack is deleted.   For more information, see DeletionPolicy attribute in the CloudFormation User Guide.
        public let deletionPolicy: GeneratedTemplateDeletionPolicy?
        /// The UpdateReplacePolicy assigned to resources in the generated template. Supported values are:    DELETE - delete all resources when the resource is replaced during an update operation.    RETAIN - retain all resources when the resource is replaced during an update operation.   For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide.
        public let updateReplacePolicy: GeneratedTemplateUpdateReplacePolicy?

        @inlinable
        public init(deletionPolicy: GeneratedTemplateDeletionPolicy? = nil, updateReplacePolicy: GeneratedTemplateUpdateReplacePolicy? = nil) {
            self.deletionPolicy = deletionPolicy
            self.updateReplacePolicy = updateReplacePolicy
        }

        private enum CodingKeys: String, CodingKey {
            case deletionPolicy = "DeletionPolicy"
            case updateReplacePolicy = "UpdateReplacePolicy"
        }
    }

    public struct TemplateParameter: AWSDecodableShape {
        /// The default value associated with the parameter.
        public let defaultValue: String?
        /// User defined description associated with the parameter.
        public let description: String?
        /// Flag indicating whether the parameter should be displayed as plain text in logs and UIs.
        public let noEcho: Bool?
        /// The name associated with the parameter.
        public let parameterKey: String?

        @inlinable
        public init(defaultValue: String? = nil, description: String? = nil, noEcho: Bool? = nil, parameterKey: String? = nil) {
            self.defaultValue = defaultValue
            self.description = description
            self.noEcho = noEcho
            self.parameterKey = parameterKey
        }

        private enum CodingKeys: String, CodingKey {
            case defaultValue = "DefaultValue"
            case description = "Description"
            case noEcho = "NoEcho"
            case parameterKey = "ParameterKey"
        }
    }

    public struct TemplateProgress: AWSDecodableShape {
        /// The number of resources that failed the template generation.
        public let resourcesFailed: Int?
        /// The number of resources that are still pending the template generation.
        public let resourcesPending: Int?
        /// The number of resources that are in-process for the template generation.
        public let resourcesProcessing: Int?
        /// The number of resources that succeeded the template generation.
        public let resourcesSucceeded: Int?

        @inlinable
        public init(resourcesFailed: Int? = nil, resourcesPending: Int? = nil, resourcesProcessing: Int? = nil, resourcesSucceeded: Int? = nil) {
            self.resourcesFailed = resourcesFailed
            self.resourcesPending = resourcesPending
            self.resourcesProcessing = resourcesProcessing
            self.resourcesSucceeded = resourcesSucceeded
        }

        private enum CodingKeys: String, CodingKey {
            case resourcesFailed = "ResourcesFailed"
            case resourcesPending = "ResourcesPending"
            case resourcesProcessing = "ResourcesProcessing"
            case resourcesSucceeded = "ResourcesSucceeded"
        }
    }

    public struct TemplateSummary: AWSDecodableShape {
        /// The time the generated template was created.
        public let creationTime: Date?
        /// The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .
        public let generatedTemplateId: String?
        /// The name of the generated template.
        public let generatedTemplateName: String?
        /// The time the generated template was last updated.
        public let lastUpdatedTime: Date?
        /// The number of resources in the generated template. This is a total of resources in pending, in-progress, completed, and failed states.
        public let numberOfResources: Int?
        /// The status of the template generation. Supported values are:    CreatePending - the creation of the template is pending.    CreateInProgress - the creation of the template is in progress.    DeletePending - the deletion of the template is pending.    DeleteInProgress - the deletion of the template is in progress.    UpdatePending - the update of the template is pending.    UpdateInProgress - the update of the template is in progress.    Failed - the template operation failed.    Complete - the template operation is complete.
        public let status: GeneratedTemplateStatus?
        /// The reason for the current template generation status. This will provide more details if a failure happened.
        public let statusReason: String?

        @inlinable
        public init(creationTime: Date? = nil, generatedTemplateId: String? = nil, generatedTemplateName: String? = nil, lastUpdatedTime: Date? = nil, numberOfResources: Int? = nil, status: GeneratedTemplateStatus? = nil, statusReason: String? = nil) {
            self.creationTime = creationTime
            self.generatedTemplateId = generatedTemplateId
            self.generatedTemplateName = generatedTemplateName
            self.lastUpdatedTime = lastUpdatedTime
            self.numberOfResources = numberOfResources
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case creationTime = "CreationTime"
            case generatedTemplateId = "GeneratedTemplateId"
            case generatedTemplateName = "GeneratedTemplateName"
            case lastUpdatedTime = "LastUpdatedTime"
            case numberOfResources = "NumberOfResources"
            case status = "Status"
            case statusReason = "StatusReason"
        }
    }

    public struct TemplateSummaryConfig: AWSEncodableShape {
        /// If set to True, any unrecognized resource types generate warnings and not an error. Any unrecognized resource types are returned in the Warnings output parameter.
        public let treatUnrecognizedResourceTypesAsWarnings: Bool?

        @inlinable
        public init(treatUnrecognizedResourceTypesAsWarnings: Bool? = nil) {
            self.treatUnrecognizedResourceTypesAsWarnings = treatUnrecognizedResourceTypesAsWarnings
        }

        private enum CodingKeys: String, CodingKey {
            case treatUnrecognizedResourceTypesAsWarnings = "TreatUnrecognizedResourceTypesAsWarnings"
        }
    }

    public struct TestTypeInput: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the extension. Conditional: You must specify Arn, or TypeName and Type.
        public let arn: String?
        /// The S3 bucket to which CloudFormation delivers the contract test execution logs. CloudFormation delivers the logs by the time contract testing has completed and the extension has been assigned a test type status of PASSED or FAILED. The user calling TestType must be able to access items in the specified S3 bucket. Specifically, the user needs the following permissions:    GetObject     PutObject    For more information, see Actions, Resources, and Condition Keys for Amazon S3 in the Identity and Access Management User Guide.
        public let logDeliveryBucket: String?
        /// The type of the extension to test. Conditional: You must specify Arn, or TypeName and Type.
        public let type: ThirdPartyType?
        /// The name of the extension to test. Conditional: You must specify Arn, or TypeName and Type.
        public let typeName: String?
        /// The version of the extension to test. You can specify the version id with either Arn, or with TypeName and Type. If you don't specify a version, CloudFormation uses the default version of the extension in this account and Region for testing.
        public let versionId: String?

        @inlinable
        public init(arn: String? = nil, logDeliveryBucket: String? = nil, type: ThirdPartyType? = nil, typeName: String? = nil, versionId: String? = nil) {
            self.arn = arn
            self.logDeliveryBucket = logDeliveryBucket
            self.type = type
            self.typeName = typeName
            self.versionId = versionId
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 1024)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+$")
            try self.validate(self.logDeliveryBucket, name: "logDeliveryBucket", parent: name, max: 63)
            try self.validate(self.logDeliveryBucket, name: "logDeliveryBucket", parent: name, min: 3)
            try self.validate(self.logDeliveryBucket, name: "logDeliveryBucket", parent: name, pattern: "^[\\s\\S]+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
            try self.validate(self.versionId, name: "versionId", parent: name, max: 128)
            try self.validate(self.versionId, name: "versionId", parent: name, min: 1)
            try self.validate(self.versionId, name: "versionId", parent: name, pattern: "^[A-Za-z0-9-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case logDeliveryBucket = "LogDeliveryBucket"
            case type = "Type"
            case typeName = "TypeName"
            case versionId = "VersionId"
        }
    }

    public struct TestTypeOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the extension.
        public let typeVersionArn: String?

        @inlinable
        public init(typeVersionArn: String? = nil) {
            self.typeVersionArn = typeVersionArn
        }

        private enum CodingKeys: String, CodingKey {
            case typeVersionArn = "TypeVersionArn"
        }
    }

    public struct TypeConfigurationDetails: AWSDecodableShape {
        /// The alias specified for this configuration, if one was specified when the configuration was set.
        public let alias: String?
        /// The ARN for the configuration data, in this account and Region.
        public let arn: String?
        /// A JSON string specifying the configuration data for the extension, in this account and Region. If a configuration hasn't been set for a specified extension, CloudFormation returns {}.
        public let configuration: String?
        /// Whether this configuration data is the default configuration for the extension.
        public let isDefaultConfiguration: Bool?
        /// When the configuration data was last updated for this extension. If a configuration hasn't been set for a specified extension, CloudFormation returns null.
        public let lastUpdated: Date?
        /// The ARN for the extension, in this account and Region. For public extensions, this will be the ARN assigned when you call the ActivateType API operation in this account and Region. For private extensions, this will be the ARN assigned when you call the RegisterType API operation in this account and Region.
        public let typeArn: String?
        /// The name of the extension.
        public let typeName: String?

        @inlinable
        public init(alias: String? = nil, arn: String? = nil, configuration: String? = nil, isDefaultConfiguration: Bool? = nil, lastUpdated: Date? = nil, typeArn: String? = nil, typeName: String? = nil) {
            self.alias = alias
            self.arn = arn
            self.configuration = configuration
            self.isDefaultConfiguration = isDefaultConfiguration
            self.lastUpdated = lastUpdated
            self.typeArn = typeArn
            self.typeName = typeName
        }

        private enum CodingKeys: String, CodingKey {
            case alias = "Alias"
            case arn = "Arn"
            case configuration = "Configuration"
            case isDefaultConfiguration = "IsDefaultConfiguration"
            case lastUpdated = "LastUpdated"
            case typeArn = "TypeArn"
            case typeName = "TypeName"
        }
    }

    public struct TypeConfigurationIdentifier: AWSEncodableShape & AWSDecodableShape {
        /// The type of extension.
        public let type: ThirdPartyType?
        /// The ARN for the extension, in this account and Region. For public extensions, this will be the ARN assigned when you call the ActivateType API operation in this account and Region. For private extensions, this will be the ARN assigned when you call the RegisterType API operation in this account and Region.
        public let typeArn: String?
        /// The alias specified for this configuration, if one was specified when the configuration was set.
        public let typeConfigurationAlias: String?
        /// The ARN for the configuration, in this account and Region.
        public let typeConfigurationArn: String?
        /// The name of the extension type to which this configuration applies.
        public let typeName: String?

        @inlinable
        public init(type: ThirdPartyType? = nil, typeArn: String? = nil, typeConfigurationAlias: String? = nil, typeConfigurationArn: String? = nil, typeName: String? = nil) {
            self.type = type
            self.typeArn = typeArn
            self.typeConfigurationAlias = typeConfigurationAlias
            self.typeConfigurationArn = typeConfigurationArn
            self.typeName = typeName
        }

        public func validate(name: String) throws {
            try self.validate(self.typeArn, name: "typeArn", parent: name, max: 1024)
            try self.validate(self.typeArn, name: "typeArn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/.+$")
            try self.validate(self.typeConfigurationAlias, name: "typeConfigurationAlias", parent: name, max: 256)
            try self.validate(self.typeConfigurationAlias, name: "typeConfigurationAlias", parent: name, min: 1)
            try self.validate(self.typeConfigurationAlias, name: "typeConfigurationAlias", parent: name, pattern: "^[a-zA-Z0-9]{1,256}$")
            try self.validate(self.typeConfigurationArn, name: "typeConfigurationArn", parent: name, max: 1024)
            try self.validate(self.typeConfigurationArn, name: "typeConfigurationArn", parent: name, pattern: "^arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type-configuration/.+$")
            try self.validate(self.typeName, name: "typeName", parent: name, max: 204)
            try self.validate(self.typeName, name: "typeName", parent: name, min: 10)
            try self.validate(self.typeName, name: "typeName", parent: name, pattern: "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}(::MODULE){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case type = "Type"
            case typeArn = "TypeArn"
            case typeConfigurationAlias = "TypeConfigurationAlias"
            case typeConfigurationArn = "TypeConfigurationArn"
            case typeName = "TypeName"
        }
    }

    public struct TypeFilters: AWSEncodableShape {
        /// The category of extensions to return.    REGISTERED: Private extensions that have been registered for this account and Region.    ACTIVATED: Public extensions that have been activated for this account and Region.    THIRD_PARTY: Extensions available for use from publishers other than Amazon. This includes:   Private extensions registered in the account.   Public extensions from publishers other than Amazon, whether activated or not.      AWS_TYPES: Extensions available for use from Amazon.
        public let category: Category?
        /// The id of the publisher of the extension. Extensions published by Amazon aren't assigned a publisher ID. Use the AWS_TYPES category to specify a list of types published by Amazon.
        public let publisherId: String?
        /// A prefix to use as a filter for results.
        public let typeNamePrefix: String?

        @inlinable
        public init(category: Category? = nil, publisherId: String? = nil, typeNamePrefix: String? = nil) {
            self.category = category
            self.publisherId = publisherId
            self.typeNamePrefix = typeNamePrefix
        }

        public func validate(name: String) throws {
            try self.validate(self.publisherId, name: "publisherId", parent: name, max: 40)
            try self.validate(self.publisherId, name: "publisherId", parent: name, min: 1)
            try self.validate(self.publisherId, name: "publisherId", parent: name, pattern: "^[0-9a-zA-Z]{12,40}$")
            try self.validate(self.typeNamePrefix, name: "typeNamePrefix", parent: name, max: 204)
            try self.validate(self.typeNamePrefix, name: "typeNamePrefix", parent: name, min: 1)
            try self.validate(self.typeNamePrefix, name: "typeNamePrefix", parent: name, pattern: "^([A-Za-z0-9]{2,64}::){0,2}([A-Za-z0-9]{2,64}:?){0,1}$")
        }

        private enum CodingKeys: String, CodingKey {
            case category = "Category"
            case publisherId = "PublisherId"
            case typeNamePrefix = "TypeNamePrefix"
        }
    }

    public struct TypeSummary: AWSDecodableShape {
        /// The ID of the default version of the extension. The default version is used when the extension version isn't specified. This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType. To set the default version of an extension, use SetTypeDefaultVersion.
        public let defaultVersionId: String?
        /// The description of the extension.
        public let description: String?
        /// Whether the extension is activated for this account and Region. This applies only to third-party public extensions. Extensions published by Amazon are activated by default.
        public let isActivated: Bool?
        /// When the specified extension version was registered. This applies only to:   Private extensions you have registered in your account. For more information, see RegisterType.   Public extensions you have activated in your account with auto-update specified. For more information, see ActivateType.   For all other extension types, CloudFormation returns null.
        public let lastUpdated: Date?
        /// For public extensions that have been activated for this account and Region, the latest version of the public extension that is available. For any extensions other than activated third-party extensions, CloudFormation returns null. How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extension in this account and Region when a new version is released. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
        public let latestPublicVersion: String?
        /// For public extensions that have been activated for this account and Region, the type name of the public extension. If you specified a TypeNameAlias when enabling the extension in this account and Region, CloudFormation treats that alias as the extension's type name within the account and Region, not the type name of the public extension. For more information, see Use aliases to refer to extensions in the CloudFormation User Guide.
        public let originalTypeName: String?
        /// For public extensions that have been activated for this account and Region, the version of the public extension to be used for CloudFormation operations in this account and Region. How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extension in this account and Region when a new version is released. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
        public let publicVersionNumber: String?
        /// The ID of the extension publisher, if the extension is published by a third party. Extensions published by Amazon don't return a publisher ID.
        public let publisherId: String?
        /// The service used to verify the publisher identity. For more information, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide.
        public let publisherIdentity: IdentityProvider?
        /// The publisher name, as defined in the public profile for that publisher in the service used to verify the publisher identity.
        public let publisherName: String?
        /// The kind of extension.
        public let type: RegistryType?
        /// The ARN of the extension.
        public let typeArn: String?
        /// The name of the extension. If you specified a TypeNameAlias when you call the ActivateType API operation in your account and Region, CloudFormation considers that alias as the type name.
        public let typeName: String?

        @inlinable
        public init(defaultVersionId: String? = nil, description: String? = nil, isActivated: Bool? = nil, lastUpdated: Date? = nil, latestPublicVersion: String? = nil, originalTypeName: String? = nil, publicVersionNumber: String? = nil, publisherId: String? = nil, publisherIdentity: IdentityProvider? = nil, publisherName: String? = nil, type: RegistryType? = nil, typeArn: String? = nil, typeName: String? = nil) {
            self.defaultVersionId = defaultVersionId
            self.description = description
            self.isActivated = isActivated
            self.lastUpdated = lastUpdated
            self.latestPublicVersion = latestPublicVersion
            self.originalTypeName = originalTypeName
            self.publicVersionNumber = publicVersionNumber
            self.publisherId = publisherId
            self.publisherIdentity = publisherIdentity
            self.publisherName = publisherName
            self.type = type
            self.typeArn = typeArn
            self.typeName = typeName
        }

        private enum CodingKeys: String, CodingKey {
            case defaultVersionId = "DefaultVersionId"
            case description = "Description"
            case isActivated = "IsActivated"
            case lastUpdated = "LastUpdated"
            case latestPublicVersion = "LatestPublicVersion"
            case originalTypeName = "OriginalTypeName"
            case publicVersionNumber = "PublicVersionNumber"
            case publisherId = "PublisherId"
            case publisherIdentity = "PublisherIdentity"
            case publisherName = "PublisherName"
            case type = "Type"
            case typeArn = "TypeArn"
            case typeName = "TypeName"
        }
    }

    public struct TypeVersionSummary: AWSDecodableShape {
        /// The ARN of the extension version.
        public let arn: String?
        /// The description of the extension version.
        public let description: String?
        /// Whether the specified extension version is set as the default version. This applies only to private extensions you have registered in your account, and extensions published by Amazon. For public third-party extensions, CloudFormation returns null.
        public let isDefaultVersion: Bool?
        /// For public extensions that have been activated for this account and Region, the version of the public extension to be used for CloudFormation operations in this account and Region. For any extensions other than activated third-party extensions, CloudFormation returns null. How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extension in this account and Region when a new version is released. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
        public let publicVersionNumber: String?
        /// When the version was registered.
        public let timeCreated: Date?
        /// The kind of extension.
        public let type: RegistryType?
        /// The name of the extension.
        public let typeName: String?
        /// The ID of a specific version of the extension. The version ID is the value at the end of the ARN assigned to the extension version when it's registered.
        public let versionId: String?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, isDefaultVersion: Bool? = nil, publicVersionNumber: String? = nil, timeCreated: Date? = nil, type: RegistryType? = nil, typeName: String? = nil, versionId: String? = nil) {
            self.arn = arn
            self.description = description
            self.isDefaultVersion = isDefaultVersion
            self.publicVersionNumber = publicVersionNumber
            self.timeCreated = timeCreated
            self.type = type
            self.typeName = typeName
            self.versionId = versionId
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "Arn"
            case description = "Description"
            case isDefaultVersion = "IsDefaultVersion"
            case publicVersionNumber = "PublicVersionNumber"
            case timeCreated = "TimeCreated"
            case type = "Type"
            case typeName = "TypeName"
            case versionId = "VersionId"
        }
    }

    public struct UpdateGeneratedTemplateInput: AWSEncodableShape {
        /// An optional list of resources to be added to the generated template.
        @OptionalCustomCoding<StandardArrayCoder<ResourceDefinition>>
        public var addResources: [ResourceDefinition]?
        /// The name or Amazon Resource Name (ARN) of a generated template.
        public let generatedTemplateName: String?
        /// An optional new name to assign to the generated template.
        public let newGeneratedTemplateName: String?
        /// If true, update the resource properties in the generated template with their current live state. This feature is useful when the resource properties in your generated a template does not reflect the live state of the resource properties. This happens when a user update the resource properties after generating a template.
        public let refreshAllResources: Bool?
        /// A list of logical ids for resources to remove from the generated template.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var removeResources: [String]?
        /// The configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.
        public let templateConfiguration: TemplateConfiguration?

        @inlinable
        public init(addResources: [ResourceDefinition]? = nil, generatedTemplateName: String? = nil, newGeneratedTemplateName: String? = nil, refreshAllResources: Bool? = nil, removeResources: [String]? = nil, templateConfiguration: TemplateConfiguration? = nil) {
            self.addResources = addResources
            self.generatedTemplateName = generatedTemplateName
            self.newGeneratedTemplateName = newGeneratedTemplateName
            self.refreshAllResources = refreshAllResources
            self.removeResources = removeResources
            self.templateConfiguration = templateConfiguration
        }

        public func validate(name: String) throws {
            try self.addResources?.forEach {
                try $0.validate(name: "\(name).addResources[]")
            }
            try self.validate(self.addResources, name: "addResources", parent: name, max: 500)
            try self.validate(self.addResources, name: "addResources", parent: name, min: 1)
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, max: 128)
            try self.validate(self.generatedTemplateName, name: "generatedTemplateName", parent: name, min: 1)
            try self.validate(self.newGeneratedTemplateName, name: "newGeneratedTemplateName", parent: name, max: 128)
            try self.validate(self.newGeneratedTemplateName, name: "newGeneratedTemplateName", parent: name, min: 1)
            try self.validate(self.removeResources, name: "removeResources", parent: name, max: 500)
            try self.validate(self.removeResources, name: "removeResources", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case addResources = "AddResources"
            case generatedTemplateName = "GeneratedTemplateName"
            case newGeneratedTemplateName = "NewGeneratedTemplateName"
            case refreshAllResources = "RefreshAllResources"
            case removeResources = "RemoveResources"
            case templateConfiguration = "TemplateConfiguration"
        }
    }

    public struct UpdateGeneratedTemplateOutput: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc .
        public let generatedTemplateId: String?

        @inlinable
        public init(generatedTemplateId: String? = nil) {
            self.generatedTemplateId = generatedTemplateId
        }

        private enum CodingKeys: String, CodingKey {
            case generatedTemplateId = "GeneratedTemplateId"
        }
    }

    public struct UpdateStackInput: AWSEncodableShape {
        /// In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the stack.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account, for example, by creating new IAM users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.     AWS::IAM::AccessKey      AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::ManagedPolicy     AWS::IAM::Policy      AWS::IAM::Role      AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually updating the stack. If your stack template contains one or more macros, and you choose to update a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation. If you want to update a stack from a stack template that contains macros and nested stacks, you must update the stack directly from the template using this capability.  You should only update stacks directly from a stack template that contains macros if you know what processing the macro performs. Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.  For more information, see Perform custom processing on CloudFormation templates with template macros.    Only one of the Capabilities and ResourceType parameters can be specified.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// A unique identifier for this UpdateStack request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to update a stack with the same name. You might retry UpdateStack requests to ensure that CloudFormation successfully received them. All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a CreateStack operation with the token token1, then all the StackEvents generated by that operation will have ClientRequestToken set as token1. In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format Console-StackOperation-ID, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
        public let clientRequestToken: String?
        /// Preserve the state of previously provisioned resources when an operation fails. Default: False
        public let disableRollback: Bool?
        /// Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that CloudFormation associates with the stack. Specify an empty list to remove all notification topics.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var notificationARNs: [String]?
        /// A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// The template resource types that you have permissions to work with for this update stack action, such as AWS::EC2::Instance, AWS::EC2::*, or Custom::MyCustomInstance. If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Control access with Identity and Access Management.  Only one of the Capabilities and ResourceType parameters can be specified.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var resourceTypes: [String]?
        /// When set to true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy of Retain. Default: false
        public let retainExceptOnCreate: Bool?
        /// The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to update the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. Provided that users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants least privilege. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that is generated from your user credentials.
        public let roleARN: String?
        /// The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
        public let rollbackConfiguration: RollbackConfiguration?
        /// The name or unique stack ID of the stack to update.
        public let stackName: String?
        /// Structure that contains a new stack policy body. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you don't specify a stack policy, the current policy that is associated with the stack is unchanged.
        public let stackPolicyBody: String?
        /// Structure that contains the temporary overriding stack policy body. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both. If you want to update protected resources, specify a temporary overriding stack policy during this update. If you don't specify a stack policy, the current policy that is associated with the stack will be used.
        public let stackPolicyDuringUpdateBody: String?
        /// Location of a file that contains the temporary overriding stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyDuringUpdateBody or the StackPolicyDuringUpdateURL parameter, but not both. If you want to update protected resources, specify a temporary overriding stack policy during this update. If you don't specify a stack policy, the current policy that is associated with the stack will be used.
        public let stackPolicyDuringUpdateURL: String?
        /// Location of a file that contains the updated stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same Region as the stack. The location for an Amazon S3 bucket must start with https://. URLs from S3 static websites are not supported. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both. You might update the stack policy, for example, in order to protect a new resource that you created during a stack update. If you don't specify a stack policy, the current policy that is associated with the stack is unchanged.
        public let stackPolicyURL: String?
        /// Key-value pairs to associate with this stack. CloudFormation also propagates these tags to supported resources in the stack. You can specify a maximum number of 50 tags. If you don't specify this parameter, CloudFormation doesn't modify the stack's tags. If you specify an empty value, CloudFormation removes all associated tags.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
        public let templateBody: String?
        /// The URL of a file that contains the template body. The URL must point to a template that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
        public let templateURL: String?
        /// Reuse the existing template that is associated with the stack that you are updating. Conditional: You must specify only one of the following parameters: TemplateBody, TemplateURL, or set the UsePreviousTemplate to true.
        public let usePreviousTemplate: Bool?

        @inlinable
        public init(capabilities: [Capability]? = nil, clientRequestToken: String? = nil, disableRollback: Bool? = nil, notificationARNs: [String]? = nil, parameters: [Parameter]? = nil, resourceTypes: [String]? = nil, retainExceptOnCreate: Bool? = nil, roleARN: String? = nil, rollbackConfiguration: RollbackConfiguration? = nil, stackName: String? = nil, stackPolicyBody: String? = nil, stackPolicyDuringUpdateBody: String? = nil, stackPolicyDuringUpdateURL: String? = nil, stackPolicyURL: String? = nil, tags: [Tag]? = nil, templateBody: String? = nil, templateURL: String? = nil, usePreviousTemplate: Bool? = nil) {
            self.capabilities = capabilities
            self.clientRequestToken = clientRequestToken
            self.disableRollback = disableRollback
            self.notificationARNs = notificationARNs
            self.parameters = parameters
            self.resourceTypes = resourceTypes
            self.retainExceptOnCreate = retainExceptOnCreate
            self.roleARN = roleARN
            self.rollbackConfiguration = rollbackConfiguration
            self.stackName = stackName
            self.stackPolicyBody = stackPolicyBody
            self.stackPolicyDuringUpdateBody = stackPolicyDuringUpdateBody
            self.stackPolicyDuringUpdateURL = stackPolicyDuringUpdateURL
            self.stackPolicyURL = stackPolicyURL
            self.tags = tags
            self.templateBody = templateBody
            self.templateURL = templateURL
            self.usePreviousTemplate = usePreviousTemplate
        }

        public func validate(name: String) throws {
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, max: 128)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, min: 1)
            try self.validate(self.clientRequestToken, name: "clientRequestToken", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.validate(self.notificationARNs, name: "notificationARNs", parent: name, max: 5)
            try self.resourceTypes?.forEach {
                try validate($0, name: "resourceTypes[]", parent: name, max: 256)
                try validate($0, name: "resourceTypes[]", parent: name, min: 1)
            }
            try self.validate(self.roleARN, name: "roleARN", parent: name, max: 2048)
            try self.validate(self.roleARN, name: "roleARN", parent: name, min: 20)
            try self.rollbackConfiguration?.validate(name: "\(name).rollbackConfiguration")
            try self.validate(self.stackPolicyBody, name: "stackPolicyBody", parent: name, max: 16384)
            try self.validate(self.stackPolicyBody, name: "stackPolicyBody", parent: name, min: 1)
            try self.validate(self.stackPolicyDuringUpdateBody, name: "stackPolicyDuringUpdateBody", parent: name, max: 16384)
            try self.validate(self.stackPolicyDuringUpdateBody, name: "stackPolicyDuringUpdateBody", parent: name, min: 1)
            try self.validate(self.stackPolicyDuringUpdateURL, name: "stackPolicyDuringUpdateURL", parent: name, max: 5120)
            try self.validate(self.stackPolicyDuringUpdateURL, name: "stackPolicyDuringUpdateURL", parent: name, min: 1)
            try self.validate(self.stackPolicyURL, name: "stackPolicyURL", parent: name, max: 5120)
            try self.validate(self.stackPolicyURL, name: "stackPolicyURL", parent: name, min: 1)
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case clientRequestToken = "ClientRequestToken"
            case disableRollback = "DisableRollback"
            case notificationARNs = "NotificationARNs"
            case parameters = "Parameters"
            case resourceTypes = "ResourceTypes"
            case retainExceptOnCreate = "RetainExceptOnCreate"
            case roleARN = "RoleARN"
            case rollbackConfiguration = "RollbackConfiguration"
            case stackName = "StackName"
            case stackPolicyBody = "StackPolicyBody"
            case stackPolicyDuringUpdateBody = "StackPolicyDuringUpdateBody"
            case stackPolicyDuringUpdateURL = "StackPolicyDuringUpdateURL"
            case stackPolicyURL = "StackPolicyURL"
            case tags = "Tags"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
            case usePreviousTemplate = "UsePreviousTemplate"
        }
    }

    public struct UpdateStackInstancesInput: AWSEncodableShape {
        /// [Self-managed permissions] The account IDs of one or more Amazon Web Services accounts in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. You can specify Accounts or DeploymentTargets, but not both.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var accounts: [String]?
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// [Service-managed permissions] The Organizations accounts in which you want to update parameter values for stack instances. If your update targets OUs, the overridden parameter values only apply to the accounts that are currently in the target OUs and their child OUs. Accounts added to the target OUs and their child OUs in the future won't use the overridden values. You can specify Accounts or DeploymentTargets, but not both.
        public let deploymentTargets: DeploymentTargets?
        /// The unique identifier for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically.
        public let operationId: String?
        /// Preferences for how CloudFormation performs this StackSet operation.
        public let operationPreferences: StackSetOperationPreferences?
        /// A list of input parameters whose values you want to update for the specified stack instances. Any overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions. When specifying parameters and their values, be aware of how CloudFormation sets parameter values during stack instance update operations:   To override the current value for a parameter, include the parameter and specify its value.   To leave an overridden parameter set to its present value, include the parameter and specify UsePreviousValue as true. (You can't specify both a value and set UsePreviousValue to true.)   To set an overridden parameter back to the value specified in the StackSet, specify a parameter list but don't include the parameter in the list.   To leave all parameters set to their present values, don't specify this property at all.   During StackSet updates, any parameter values overridden for a stack instance aren't updated, but retain their overridden value. You can only override the parameter values that are specified in the StackSet. To add or delete a parameter itself, use UpdateStackSet to update the StackSet template. If you add a parameter to a template, before you can override the parameter value specified in the StackSet you must first use UpdateStackSet to update all stack instances with the updated template and parameter value specified in the StackSet. Once a stack instance has been updated with the new parameter, you can then override the parameter value using UpdateStackInstances.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameterOverrides: [Parameter]?
        /// The names of one or more Amazon Web Services Regions in which you want to update parameter values for stack instances. The overridden parameter values will be applied to all stack instances in the specified accounts and Amazon Web Services Regions.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regions: [String]?
        /// The name or unique ID of the StackSet associated with the stack instances.
        public let stackSetName: String?

        @inlinable
        public init(accounts: [String]? = nil, callAs: CallAs? = nil, deploymentTargets: DeploymentTargets? = nil, operationId: String? = UpdateStackInstancesInput.idempotencyToken(), operationPreferences: StackSetOperationPreferences? = nil, parameterOverrides: [Parameter]? = nil, regions: [String]? = nil, stackSetName: String? = nil) {
            self.accounts = accounts
            self.callAs = callAs
            self.deploymentTargets = deploymentTargets
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.parameterOverrides = parameterOverrides
            self.regions = regions
            self.stackSetName = stackSetName
        }

        public func validate(name: String) throws {
            try self.accounts?.forEach {
                try validate($0, name: "accounts[]", parent: name, pattern: "^[0-9]{12}$")
            }
            try self.deploymentTargets?.validate(name: "\(name).deploymentTargets")
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.operationPreferences?.validate(name: "\(name).operationPreferences")
            try self.regions?.forEach {
                try validate($0, name: "regions[]", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
            }
            try self.validate(self.stackSetName, name: "stackSetName", parent: name, pattern: "^[a-zA-Z][-a-zA-Z0-9]*(?::[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})?$")
        }

        private enum CodingKeys: String, CodingKey {
            case accounts = "Accounts"
            case callAs = "CallAs"
            case deploymentTargets = "DeploymentTargets"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case parameterOverrides = "ParameterOverrides"
            case regions = "Regions"
            case stackSetName = "StackSetName"
        }
    }

    public struct UpdateStackInstancesOutput: AWSDecodableShape {
        /// The unique identifier for this StackSet operation.
        public let operationId: String?

        @inlinable
        public init(operationId: String? = nil) {
            self.operationId = operationId
        }

        private enum CodingKeys: String, CodingKey {
            case operationId = "OperationId"
        }
    }

    public struct UpdateStackOutput: AWSDecodableShape {
        /// Unique identifier of the stack.
        public let stackId: String?

        @inlinable
        public init(stackId: String? = nil) {
            self.stackId = stackId
        }

        private enum CodingKeys: String, CodingKey {
            case stackId = "StackId"
        }
    }

    public struct UpdateStackSetInput: AWSEncodableShape {
        /// [Self-managed permissions] The accounts in which to update associated stack instances. If you specify accounts, you must also specify the Amazon Web Services Regions in which to update StackSet instances. To update all the stack instances associated with this StackSet, don't specify the Accounts or Regions properties. If the StackSet update includes changes to the template (that is, if the TemplateBody or TemplateURL properties are specified), or the Parameters property, CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Amazon Web Services Regions. If the StackSet update does not include changes to the template or parameters, CloudFormation updates the stack instances in the specified accounts and Amazon Web Services Regions, while leaving all other stack instances with their existing stack instance status.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var accounts: [String]?
        /// [Self-managed permissions] The Amazon Resource Name (ARN) of the IAM role to use to update this StackSet. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide. If you specified a customized administrator role when you created the StackSet, you must specify a customized administrator role, even if it is the same customized administrator role used with this StackSet previously.
        public let administrationRoleARN: String?
        /// [Service-managed permissions] Describes whether StackSets automatically deploys to Organizations accounts that are added to a target organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User Guide. If you specify AutoDeployment, don't specify DeploymentTargets or Regions.
        public let autoDeployment: AutoDeployment?
        /// [Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions.   If you are signed in to the management account, specify SELF.   If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFormation User Guide.
        public let callAs: CallAs?
        /// In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the StackSet and its associated stack instances.    CAPABILITY_IAM and CAPABILITY_NAMED_IAM  Some stack templates might include resources that can affect permissions in your Amazon Web Services account, for example, by creating new IAM users. For those stacks sets, you must explicitly acknowledge this by specifying one of these capabilities. The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.   If you have IAM resources, you can specify either capability.   If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.   If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities error.   If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.    AWS::IAM::AccessKey     AWS::IAM::Group     AWS::IAM::InstanceProfile     AWS::IAM::Policy     AWS::IAM::Role     AWS::IAM::User     AWS::IAM::UserToGroupAddition    For more information, see Acknowledging IAM resources in CloudFormation templates.    CAPABILITY_AUTO_EXPAND  Some templates reference macros. If your StackSet template references one or more macros, you must update the StackSet directly from the processed template, without first reviewing the resulting changes in a change set. To update the StackSet directly, you must acknowledge this capability. For more information, see Perform custom processing on CloudFormation templates with template macros.  StackSets with service-managed permissions do not currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a StackSet with service-managed permissions, if you reference a macro in your template the StackSet operation will fail.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// [Service-managed permissions] The Organizations accounts in which to update associated stack instances. To update all the stack instances associated with this StackSet, do not specify DeploymentTargets or Regions. If the StackSet update includes changes to the template (that is, if TemplateBody or TemplateURL is specified), or the Parameters, CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Amazon Web Services Regions. If the StackSet update doesn't include changes to the template or parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status.
        public let deploymentTargets: DeploymentTargets?
        /// A brief description of updates that you are making.
        public let description: String?
        /// [Self-managed permissions] The name of the IAM execution role to use to update the stack set. If you do not specify an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the StackSet operation. Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can include in their StackSets. If you specify a customized execution role, CloudFormation uses that role to update the stack. If you do not specify a customized execution role, CloudFormation performs the update using the role previously associated with the StackSet, so long as you have permissions to perform operations on the StackSet.
        public let executionRoleName: String?
        /// Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations.
        public let managedExecution: ManagedExecution?
        /// The unique ID for this StackSet operation. The operation ID also functions as an idempotency token, to ensure that CloudFormation performs the StackSet operation only once, even if you retry the request multiple times. You might retry StackSet operation requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, CloudFormation generates one automatically. Repeating this StackSet operation with a new operation ID retries all stack instances whose status is OUTDATED.
        public let operationId: String?
        /// Preferences for how CloudFormation performs this StackSet operation.
        public let operationPreferences: StackSetOperationPreferences?
        /// A list of input parameters for the StackSet template.
        @OptionalCustomCoding<StandardArrayCoder<Parameter>>
        public var parameters: [Parameter]?
        /// Describes how the IAM roles required for StackSet operations are created. You cannot modify PermissionModel if there are stack instances associated with your stack set.   With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions.   With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations.
        public let permissionModel: PermissionModels?
        /// The Amazon Web Services Regions in which to update associated stack instances. If you specify Regions, you must also specify accounts in which to update StackSet instances. To update all the stack instances associated with this StackSet, do not specify the Accounts or Regions properties. If the StackSet update includes changes to the template (that is, if the TemplateBody or TemplateURL properties are specified), or the Parameters property, CloudFormation marks all stack instances with a status of OUTDATED prior to updating the stack instances in the specified accounts and Regions. If the StackSet update does not include changes to the template or parameters, CloudFormation updates the stack instances in the specified accounts and Regions, while leaving all other stack instances with their existing stack instance status.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var regions: [String]?
        /// The name or unique ID of the StackSet that you want to update.
        public let stackSetName: String?
        /// The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported resources that are created in the stacks. You can specify a maximum number of 50 tags. If you specify tags for this parameter, those tags replace any list of tags that are currently associated with this StackSet. This means:   If you don't specify this parameter, CloudFormation doesn't modify the stack's tags.   If you specify any tags using this parameter, you must specify all the tags that you want associated with this StackSet, even tags you've specified before (for example, when creating the StackSet or during a previous update of the StackSet.). Any tags that you don't include in the updated list of tags are removed from the StackSet, and therefore from the stacks and resources as well.   If you specify an empty value, CloudFormation removes all currently associated tags.   If you specify new tags as part of an UpdateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you omit tags that are currently associated with the StackSet from the list of tags you specify, CloudFormation assumes that you want to remove those tags from the StackSet, and checks to see if you have permission to untag resources. If you don't have the necessary permission(s), the entire UpdateStackSet action fails with an access denied error, and the StackSet is not updated.
        @OptionalCustomCoding<StandardArrayCoder<Tag>>
        public var tags: [Tag]?
        /// The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true.
        public let templateBody: String?
        /// The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that is located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. S3 static website URLs are not supported. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true.
        public let templateURL: String?
        /// Use the existing template that's associated with the StackSet that you're updating. Conditional: You must specify only one of the following parameters: TemplateBody or TemplateURL—or set UsePreviousTemplate to true.
        public let usePreviousTemplate: Bool?

        @inlinable
        public init(accounts: [String]? = nil, administrationRoleARN: String? = nil, autoDeployment: AutoDeployment? = nil, callAs: CallAs? = nil, capabilities: [Capability]? = nil, deploymentTargets: DeploymentTargets? = nil, description: String? = nil, executionRoleName: String? = nil, managedExecution: ManagedExecution? = nil, operationId: String? = UpdateStackSetInput.idempotencyToken(), operationPreferences: StackSetOperationPreferences? = nil, parameters: [Parameter]? = nil, permissionModel: PermissionModels? = nil, regions: [String]? = nil, stackSetName: String? = nil, tags: [Tag]? = nil, templateBody: String? = nil, templateURL: String? = nil, usePreviousTemplate: Bool? = nil) {
            self.accounts = accounts
            self.administrationRoleARN = administrationRoleARN
            self.autoDeployment = autoDeployment
            self.callAs = callAs
            self.capabilities = capabilities
            self.deploymentTargets = deploymentTargets
            self.description = description
            self.executionRoleName = executionRoleName
            self.managedExecution = managedExecution
            self.operationId = operationId
            self.operationPreferences = operationPreferences
            self.parameters = parameters
            self.permissionModel = permissionModel
            self.regions = regions
            self.stackSetName = stackSetName
            self.tags = tags
            self.templateBody = templateBody
            self.templateURL = templateURL
            self.usePreviousTemplate = usePreviousTemplate
        }

        public func validate(name: String) throws {
            try self.accounts?.forEach {
                try validate($0, name: "accounts[]", parent: name, pattern: "^[0-9]{12}$")
            }
            try self.validate(self.administrationRoleARN, name: "administrationRoleARN", parent: name, max: 2048)
            try self.validate(self.administrationRoleARN, name: "administrationRoleARN", parent: name, min: 20)
            try self.deploymentTargets?.validate(name: "\(name).deploymentTargets")
            try self.validate(self.description, name: "description", parent: name, max: 1024)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.executionRoleName, name: "executionRoleName", parent: name, max: 64)
            try self.validate(self.executionRoleName, name: "executionRoleName", parent: name, min: 1)
            try self.validate(self.executionRoleName, name: "executionRoleName", parent: name, pattern: "^[a-zA-Z_0-9+=,.@-]+$")
            try self.validate(self.operationId, name: "operationId", parent: name, max: 128)
            try self.validate(self.operationId, name: "operationId", parent: name, min: 1)
            try self.validate(self.operationId, name: "operationId", parent: name, pattern: "^[a-zA-Z0-9][-a-zA-Z0-9]*$")
            try self.operationPreferences?.validate(name: "\(name).operationPreferences")
            try self.regions?.forEach {
                try validate($0, name: "regions[]", parent: name, pattern: "^[a-zA-Z0-9-]{1,128}$")
            }
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, max: 50)
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case accounts = "Accounts"
            case administrationRoleARN = "AdministrationRoleARN"
            case autoDeployment = "AutoDeployment"
            case callAs = "CallAs"
            case capabilities = "Capabilities"
            case deploymentTargets = "DeploymentTargets"
            case description = "Description"
            case executionRoleName = "ExecutionRoleName"
            case managedExecution = "ManagedExecution"
            case operationId = "OperationId"
            case operationPreferences = "OperationPreferences"
            case parameters = "Parameters"
            case permissionModel = "PermissionModel"
            case regions = "Regions"
            case stackSetName = "StackSetName"
            case tags = "Tags"
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
            case usePreviousTemplate = "UsePreviousTemplate"
        }
    }

    public struct UpdateStackSetOutput: AWSDecodableShape {
        /// The unique ID for this StackSet operation.
        public let operationId: String?

        @inlinable
        public init(operationId: String? = nil) {
            self.operationId = operationId
        }

        private enum CodingKeys: String, CodingKey {
            case operationId = "OperationId"
        }
    }

    public struct UpdateTerminationProtectionInput: AWSEncodableShape {
        /// Whether to enable termination protection on the specified stack.
        public let enableTerminationProtection: Bool?
        /// The name or unique ID of the stack for which you want to set termination protection.
        public let stackName: String?

        @inlinable
        public init(enableTerminationProtection: Bool? = nil, stackName: String? = nil) {
            self.enableTerminationProtection = enableTerminationProtection
            self.stackName = stackName
        }

        public func validate(name: String) throws {
            try self.validate(self.stackName, name: "stackName", parent: name, min: 1)
            try self.validate(self.stackName, name: "stackName", parent: name, pattern: "^([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case enableTerminationProtection = "EnableTerminationProtection"
            case stackName = "StackName"
        }
    }

    public struct UpdateTerminationProtectionOutput: AWSDecodableShape {
        /// The unique ID of the stack.
        public let stackId: String?

        @inlinable
        public init(stackId: String? = nil) {
            self.stackId = stackId
        }

        private enum CodingKeys: String, CodingKey {
            case stackId = "StackId"
        }
    }

    public struct ValidateTemplateInput: AWSEncodableShape {
        /// Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
        public let templateBody: String?
        /// The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that is located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https://. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.
        public let templateURL: String?

        @inlinable
        public init(templateBody: String? = nil, templateURL: String? = nil) {
            self.templateBody = templateBody
            self.templateURL = templateURL
        }

        public func validate(name: String) throws {
            try self.validate(self.templateBody, name: "templateBody", parent: name, min: 1)
            try self.validate(self.templateURL, name: "templateURL", parent: name, max: 5120)
            try self.validate(self.templateURL, name: "templateURL", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case templateBody = "TemplateBody"
            case templateURL = "TemplateURL"
        }
    }

    public struct ValidateTemplateOutput: AWSDecodableShape {
        /// The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error. For more information, see Acknowledging IAM resources in CloudFormation templates.
        @OptionalCustomCoding<StandardArrayCoder<Capability>>
        public var capabilities: [Capability]?
        /// The list of resources that generated the values in the Capabilities response element.
        public let capabilitiesReason: String?
        /// A list of the transforms that are declared in the template.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var declaredTransforms: [String]?
        /// The description found within the template.
        public let description: String?
        /// A list of TemplateParameter structures.
        @OptionalCustomCoding<StandardArrayCoder<TemplateParameter>>
        public var parameters: [TemplateParameter]?

        @inlinable
        public init(capabilities: [Capability]? = nil, capabilitiesReason: String? = nil, declaredTransforms: [String]? = nil, description: String? = nil, parameters: [TemplateParameter]? = nil) {
            self.capabilities = capabilities
            self.capabilitiesReason = capabilitiesReason
            self.declaredTransforms = declaredTransforms
            self.description = description
            self.parameters = parameters
        }

        private enum CodingKeys: String, CodingKey {
            case capabilities = "Capabilities"
            case capabilitiesReason = "CapabilitiesReason"
            case declaredTransforms = "DeclaredTransforms"
            case description = "Description"
            case parameters = "Parameters"
        }
    }

    public struct WarningDetail: AWSDecodableShape {
        /// The properties of the resource that are impacted by this warning.
        @OptionalCustomCoding<StandardArrayCoder<WarningProperty>>
        public var properties: [WarningProperty]?
        /// The type of this warning. For more information, see Resolve write-only properties in the CloudFormation User Guide.    MUTUALLY_EXCLUSIVE_PROPERTIES - The resource requires mutually-exclusive write-only properties. The IaC generator selects one set of mutually exclusive properties and converts the included properties into parameters. The parameter names have a suffix OneOf and the parameter descriptions indicate that the corresponding property can be replaced with other exclusive properties.    UNSUPPORTED_PROPERTIES - Unsupported properties are present in the resource. One example of unsupported properties would be a required write-only property that is an array, because a parameter cannot be an array. Another example is an optional write-only property.    MUTUALLY_EXCLUSIVE_TYPES - One or more required write-only properties are found in the resource, and the type of that property can be any of several types.    Currently the resource and property reference documentation does not indicate if a property uses a type of oneOf or anyOf. You need to look at the resource provider schema.
        public let type: WarningType?

        @inlinable
        public init(properties: [WarningProperty]? = nil, type: WarningType? = nil) {
            self.properties = properties
            self.type = type
        }

        private enum CodingKeys: String, CodingKey {
            case properties = "Properties"
            case type = "Type"
        }
    }

    public struct WarningProperty: AWSDecodableShape {
        /// The description of the property from the resource provider schema.
        public let description: String?
        /// The path of the property. For example, if this is for the S3Bucket member of the Code property, the property path would be Code/S3Bucket.
        public let propertyPath: String?
        /// If true, the specified property is required.
        public let required: Bool?

        @inlinable
        public init(description: String? = nil, propertyPath: String? = nil, required: Bool? = nil) {
            self.description = description
            self.propertyPath = propertyPath
            self.required = required
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case propertyPath = "PropertyPath"
            case required = "Required"
        }
    }

    public struct Warnings: AWSDecodableShape {
        /// A list of all of the unrecognized resource types. This is only returned if the TemplateSummaryConfig parameter has the TreatUnrecognizedResourceTypesAsWarning configuration set to True.
        @OptionalCustomCoding<StandardArrayCoder<String>>
        public var unrecognizedResourceTypes: [String]?

        @inlinable
        public init(unrecognizedResourceTypes: [String]? = nil) {
            self.unrecognizedResourceTypes = unrecognizedResourceTypes
        }

        private enum CodingKeys: String, CodingKey {
            case unrecognizedResourceTypes = "UnrecognizedResourceTypes"
        }
    }
}

// MARK: - Errors

/// Error enum for CloudFormation
public struct CloudFormationErrorType: AWSErrorType {
    enum Code: String {
        case alreadyExistsException = "AlreadyExistsException"
        case cfnRegistryException = "CFNRegistryException"
        case changeSetNotFoundException = "ChangeSetNotFound"
        case concurrentResourcesLimitExceededException = "ConcurrentResourcesLimitExceeded"
        case createdButModifiedException = "CreatedButModifiedException"
        case generatedTemplateNotFoundException = "GeneratedTemplateNotFound"
        case hookResultNotFoundException = "HookResultNotFound"
        case insufficientCapabilitiesException = "InsufficientCapabilitiesException"
        case invalidChangeSetStatusException = "InvalidChangeSetStatus"
        case invalidOperationException = "InvalidOperationException"
        case invalidStateTransitionException = "InvalidStateTransition"
        case limitExceededException = "LimitExceededException"
        case nameAlreadyExistsException = "NameAlreadyExistsException"
        case operationIdAlreadyExistsException = "OperationIdAlreadyExistsException"
        case operationInProgressException = "OperationInProgressException"
        case operationNotFoundException = "OperationNotFoundException"
        case operationStatusCheckFailedException = "ConditionalCheckFailed"
        case resourceScanInProgressException = "ResourceScanInProgress"
        case resourceScanLimitExceededException = "ResourceScanLimitExceeded"
        case resourceScanNotFoundException = "ResourceScanNotFound"
        case stackInstanceNotFoundException = "StackInstanceNotFoundException"
        case stackNotFoundException = "StackNotFoundException"
        case stackRefactorNotFoundException = "StackRefactorNotFoundException"
        case stackSetNotEmptyException = "StackSetNotEmptyException"
        case stackSetNotFoundException = "StackSetNotFoundException"
        case staleRequestException = "StaleRequestException"
        case tokenAlreadyExistsException = "TokenAlreadyExistsException"
        case typeConfigurationNotFoundException = "TypeConfigurationNotFoundException"
        case typeNotFoundException = "TypeNotFoundException"
    }

    private let error: Code
    public let context: AWSErrorContext?

    /// initialize CloudFormation
    public init?(errorCode: String, context: AWSErrorContext) {
        guard let error = Code(rawValue: errorCode) else { return nil }
        self.error = error
        self.context = context
    }

    internal init(_ error: Code) {
        self.error = error
        self.context = nil
    }

    /// return error code string
    public var errorCode: String { self.error.rawValue }

    /// The resource with the name requested already exists.
    public static var alreadyExistsException: Self { .init(.alreadyExistsException) }
    /// An error occurred during a CloudFormation registry operation.
    public static var cfnRegistryException: Self { .init(.cfnRegistryException) }
    /// The specified change set name or ID doesn't exit. To view valid change sets for a stack, use the ListChangeSets operation.
    public static var changeSetNotFoundException: Self { .init(.changeSetNotFoundException) }
    /// No more than 5 generated templates can be in an InProgress or Pending status at one time. This error is also returned if a generated template that is in an InProgress or Pending status is attempted to be updated or deleted.
    public static var concurrentResourcesLimitExceededException: Self { .init(.concurrentResourcesLimitExceededException) }
    /// The specified resource exists, but has been changed.
    public static var createdButModifiedException: Self { .init(.createdButModifiedException) }
    /// The generated template was not found.
    public static var generatedTemplateNotFoundException: Self { .init(.generatedTemplateNotFoundException) }
    /// The specified target doesn't have any requested Hook invocations.
    public static var hookResultNotFoundException: Self { .init(.hookResultNotFoundException) }
    /// The template contains resources with capabilities that weren't specified in the Capabilities parameter.
    public static var insufficientCapabilitiesException: Self { .init(.insufficientCapabilitiesException) }
    /// The specified change set can't be used to update the stack. For example, the change set status might be CREATE_IN_PROGRESS, or the stack status might be UPDATE_IN_PROGRESS.
    public static var invalidChangeSetStatusException: Self { .init(.invalidChangeSetStatusException) }
    /// The specified operation isn't valid.
    public static var invalidOperationException: Self { .init(.invalidOperationException) }
    /// Error reserved for use by the CloudFormation CLI. CloudFormation doesn't return this error to users.
    public static var invalidStateTransitionException: Self { .init(.invalidStateTransitionException) }
    /// The quota for the resource has already been reached. For information about resource and stack limitations, see CloudFormation quotas in the CloudFormation User Guide.
    public static var limitExceededException: Self { .init(.limitExceededException) }
    /// The specified name is already in use.
    public static var nameAlreadyExistsException: Self { .init(.nameAlreadyExistsException) }
    /// The specified operation ID already exists.
    public static var operationIdAlreadyExistsException: Self { .init(.operationIdAlreadyExistsException) }
    /// Another operation is currently in progress for this StackSet. Only one operation can be performed for a stack set at a given time.
    public static var operationInProgressException: Self { .init(.operationInProgressException) }
    /// The specified ID refers to an operation that doesn't exist.
    public static var operationNotFoundException: Self { .init(.operationNotFoundException) }
    /// Error reserved for use by the CloudFormation CLI. CloudFormation doesn't return this error to users.
    public static var operationStatusCheckFailedException: Self { .init(.operationStatusCheckFailedException) }
    /// A resource scan is currently in progress. Only one can be run at a time for an account in a Region.
    public static var resourceScanInProgressException: Self { .init(.resourceScanInProgressException) }
    /// The limit on resource scans has been exceeded. Reasons include:   Exceeded the daily quota for resource scans.   A resource scan recently failed. You must wait 10 minutes before starting a new resource scan.   The last resource scan failed after exceeding 100,000 resources. When this happens, you must wait 24 hours before starting a new resource scan.
    public static var resourceScanLimitExceededException: Self { .init(.resourceScanLimitExceededException) }
    /// The resource scan was not found.
    public static var resourceScanNotFoundException: Self { .init(.resourceScanNotFoundException) }
    /// The specified stack instance doesn't exist.
    public static var stackInstanceNotFoundException: Self { .init(.stackInstanceNotFoundException) }
    /// The specified stack ARN doesn't exist or stack doesn't exist corresponding to the ARN in input.
    public static var stackNotFoundException: Self { .init(.stackNotFoundException) }
    /// The specified stack refactor can't be found.
    public static var stackRefactorNotFoundException: Self { .init(.stackRefactorNotFoundException) }
    /// You can't yet delete this StackSet, because it still contains one or more stack instances. Delete all stack instances from the StackSet before deleting the StackSet.
    public static var stackSetNotEmptyException: Self { .init(.stackSetNotEmptyException) }
    /// The specified StackSet doesn't exist.
    public static var stackSetNotFoundException: Self { .init(.stackSetNotFoundException) }
    /// Another operation has been performed on this StackSet since the specified operation was performed.
    public static var staleRequestException: Self { .init(.staleRequestException) }
    /// A client request token already exists.
    public static var tokenAlreadyExistsException: Self { .init(.tokenAlreadyExistsException) }
    /// The specified extension configuration can't be found.
    public static var typeConfigurationNotFoundException: Self { .init(.typeConfigurationNotFoundException) }
    /// The specified extension doesn't exist in the CloudFormation registry.
    public static var typeNotFoundException: Self { .init(.typeNotFoundException) }
}

extension CloudFormationErrorType: Equatable {
    public static func == (lhs: CloudFormationErrorType, rhs: CloudFormationErrorType) -> Bool {
        lhs.error == rhs.error
    }
}

extension CloudFormationErrorType: CustomStringConvertible {
    public var description: String {
        return "\(self.error.rawValue): \(self.message ?? "")"
    }
}
